Skip to content

Commit f307984

Browse files
committed
👷 Add pre-commit hook to catch typos
1 parent 34c8f8b commit f307984

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ repos:
1717
)$
1818
- id: trailing-whitespace
1919
exclude: ^frontend/src/client/.*
20+
- repo: https://github.com/crate-ci/typos
21+
rev: bbaefadf97b0ec5fdc942684b647f1a6ab250274 # v1.46.0
22+
hooks:
23+
- id: typos
24+
args: [--force-exclude]
25+
2026
- repo: local
2127
hooks:
2228
- id: local-biome-check

pyproject.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,18 @@ dev = [
99
github-actions = [
1010
"smokeshow >=0.5.0",
1111
]
12+
13+
[tool.typos.files]
14+
extend-exclude = [
15+
"img/",
16+
"release-notes.md",
17+
"uv.lock",
18+
"bun.lock",
19+
"backend/coverage/",
20+
"backend/htmlcov/",
21+
"frontend/dist/",
22+
"frontend/public/assets/images/",
23+
]
24+
25+
[tool.typos.default.extend-identifiers]
26+
alls = "alls"

0 commit comments

Comments
 (0)