diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 23272bc25..03730febd 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.4.3 diff --git a/git/index/base.py b/git/index/base.py index 28b60a880..a317e71c0 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 15e360064..1e09e210e 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 7fc809a6d..8b4522824 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -80,6 +80,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