Browse Source
pre-commit: Add the `typos` hook for extra spellchecking
Also, use it to spellcheck commit messages.
pull/376/head
Alex Turbov
7 months ago
No known key found for this signature in database
GPG Key ID: 8BEDB7D11F95D5E3
1 changed files with
9 additions and
0 deletions
-
.pre-commit-config.yaml
|
|
@ -91,3 +91,12 @@ repos: |
|
|
|
hooks: |
|
|
|
- id: codespell |
|
|
|
stages: [commit-msg, pre-commit] |
|
|
|
|
|
|
|
- repo: https://github.com/crate-ci/typos |
|
|
|
rev: v1.29.4 |
|
|
|
hooks: |
|
|
|
- id: typos |
|
|
|
# NOTE Override hook's default args to prevent automatic |
|
|
|
# fixing of found typos. Let the dev decide what to fix! |
|
|
|
args: ['--force-exclude'] |
|
|
|
stages: [commit-msg, pre-commit] |