diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4f9497327..a94d93468 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,6 +4,7 @@ repos: hooks: - id: codespell additional_dependencies: [tomli] + args: ["--write-changes"] - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.3.2 diff --git a/git/index/base.py b/git/index/base.py index 0cc2e5ee7..5acd3f675 100644 --- a/git/index/base.py +++ b/git/index/base.py @@ -1443,7 +1443,7 @@ def reset( key = entry_key(path, 0) self.entries[key] = nie[key] except KeyError: - # If key is not in theirs, it musn't be in ours. + # If key is not in theirs, it mustn't be in ours. try: del self.entries[key] except KeyError: diff --git a/git/remote.py b/git/remote.py index f2ecd0f36..214b213da 100644 --- a/git/remote.py +++ b/git/remote.py @@ -250,7 +250,7 @@ def _from_line(cls, remote: "Remote", line: str) -> "PushInfo": flags |= cls.NEW_TAG elif "[new branch]" in summary: flags |= cls.NEW_HEAD - # uptodate encoded in control character + # up-to-date encoded in control character else: # Fast-forward or forced update - was encoded in control character, # but we parse the old and new commit. diff --git a/pyproject.toml b/pyproject.toml index 7d6dd2a29..cb13b3592 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -81,6 +81,7 @@ lint.unfixable = [ ] [tool.codespell] -#skip = '*.po,*.ts,./src/3rdParty,./src/Test' +skip = 'test/fixtures/reflog_*' +ignore-words-list="gud,doesnt" #count = true quiet-level = 3 \ No newline at end of file