diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 92cbcc0..661aad5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,6 +11,11 @@ repos: - --unsafe - id: end-of-file-fixer - id: trailing-whitespace +- repo: https://github.com/crate-ci/typos + rev: bbaefadf97b0ec5fdc942684b647f1a6ab250274 # v1.46.0 + hooks: + - id: typos + args: [--force-exclude] - repo: local hooks: - id: local-ruff-check diff --git a/pyproject.toml b/pyproject.toml index 81983b0..1912188 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -122,3 +122,14 @@ source-includes = [ [tool.ty.terminal] error-on-warning = true + +[tool.typos.files] +extend-exclude = [ + "release-notes.md", + "uv.lock", + "coverage/", + "htmlcov/", +] + +[tool.typos.default.extend-identifiers] +alls = "alls"