Skip to content

Commit af54f66

Browse files
committed
👷 Add pre-commit hook to catch typos
1 parent 7a7e37b commit af54f66

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

‎.pre-commit-config.yaml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ repos:
1111
- --unsafe
1212
- id: end-of-file-fixer
1313
- id: trailing-whitespace
14+
- repo: https://github.com/crate-ci/typos
15+
rev: bbaefadf97b0ec5fdc942684b647f1a6ab250274 # v1.46.0
16+
hooks:
17+
- id: typos
18+
args: [--force-exclude]
1419
- repo: local
1520
hooks:
1621
- id: local-ruff-check

‎pyproject.toml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,14 @@ keep-runtime-typing = true
138138

139139
[tool.ty.terminal]
140140
error-on-warning = true
141+
142+
[tool.typos.files]
143+
extend-exclude = [
144+
"release-notes.md",
145+
"uv.lock",
146+
"coverage/",
147+
"htmlcov/",
148+
]
149+
150+
[tool.typos.default.extend-identifiers]
151+
alls = "alls"

0 commit comments

Comments
 (0)