mirror of
https://github.com/fastapi/full-stack-fastapi-template.git
synced 2026-11-03 12:29:42 +00:00
👷 Add pre-commit hook to catch typos (#2317)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user