mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-09 08:40:11 -06:00
pre-commit: Add the typos hook for extra spellchecking
Also, use it to spellcheck commit messages.
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user