👷 Add pre-commit hook to catch typos (#2317)

This commit is contained in:
Yurii Motov
2026-06-19 22:43:47 +02:00
committed by GitHub
parent cd83fc10ca
commit 13c4678515
2 changed files with 27 additions and 0 deletions
+5
View File
@@ -17,6 +17,11 @@ 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
+22
View File
@@ -9,3 +9,25 @@ dev = [
github-actions = [
"smokeshow >=0.5.0",
]
[tool.typos.files]
extend-exclude = [
"img/",
"uv.lock",
"bun.lock",
"backend/coverage/",
"backend/htmlcov/",
"frontend/dist/",
"frontend/public/assets/images/",
]
[tool.typos.default]
extend-ignore-re = [
# GitHub usernames in @mentions
"@[a-zA-Z0-9](?:-?[a-zA-Z0-9])*",
# Name of the package in the PR title
"Bump certifi ",
]
[tool.typos.default.extend-identifiers]
alls = "alls"