def METHOD_NAME(tmpdir, cwd_tmpdir, tmp_repo, capsys):
    tmpdir.join("test.py").write("print('hello')\n")
    tmp_repo.git.add("test.py")
    tmpdir.join("jupytext.toml").write('formats = "ipynb,py"')
    # Run jupytext
    status = jupytext(["--sync", "--pre-commit-mode", "test.py"])
    assert status != 0
    assert tmpdir.join("test.ipynb").exists()
    out = capsys.readouterr()
    assert "git add test.ipynb" in out.out