◐ Shell
reader mode source ↗
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
File filter
Conversations
Jump to
Diff view
Apply and reload
Show whitespace
Diff view
Apply and reload
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repos:
exclude: ^test/fixtures/

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.8
hooks:
- id: ruff-check
args: ["--fix"]
Expand Down
17 changes: 15 additions & 2 deletions test/test_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,19 @@ def _decode(stdout):
_win_bash_status = WinBashStatus.check()


def _make_hook(git_dir, name, content, make_exec=True):
"""A helper to create a hook"""
hp = hook_path(name, git_dir)
Expand Down @@ -553,9 +566,9 @@ def _count_existing(self, repo, files):
# END num existing helper

@pytest.mark.xfail(
sys.platform == "win32" and Git().config("core.symlinks") == "true",
reason="Assumes symlinks are not created on Windows and opens a symlink to a nonexistent target.",
raises=FileNotFoundError,
)
@with_rw_repo("0.1.6")
def test_index_mutation(self, rw_repo):
Expand Down
Loading
Toggle all file notes Toggle all file annotations