👷 Add pre-commit hook to catch typos

This commit is contained in:
Yurii Motov
2026-05-29 17:18:43 +02:00
parent 34c8f8b78e
commit f30798443b
2 changed files with 21 additions and 0 deletions
+6
View File
@@ -17,6 +17,12 @@ repos:
)$
- id: trailing-whitespace
exclude: ^frontend/src/client/.*
- repo: https://github.com/crate-ci/typos
rev: bbaefadf97b0ec5fdc942684b647f1a6ab250274 # v1.46.0
hooks:
- id: typos
args: [--force-exclude]
- repo: local
hooks:
- id: local-biome-check
+15
View File
@@ -9,3 +9,18 @@ dev = [
github-actions = [
"smokeshow >=0.5.0",
]
[tool.typos.files]
extend-exclude = [
"img/",
"release-notes.md",
"uv.lock",
"bun.lock",
"backend/coverage/",
"backend/htmlcov/",
"frontend/dist/",
"frontend/public/assets/images/",
]
[tool.typos.default.extend-identifiers]
alls = "alls"