pre-commit: Add the codespell
hook
Also, use it to spellcheck commit messages.
This commit is contained in:
parent
244e3d314c
commit
54eba3a42a
@ -10,7 +10,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
default_stages: [pre-commit]
|
default_stages: [pre-commit]
|
||||||
default_install_hook_types: [pre-commit]
|
default_install_hook_types: [commit-msg, pre-commit]
|
||||||
fail_fast: false
|
fail_fast: false
|
||||||
# NOTE Exclude third-party sources and some files globally.
|
# NOTE Exclude third-party sources and some files globally.
|
||||||
# See `Utilities/Scripts/update-*.bash` scripts and
|
# See `Utilities/Scripts/update-*.bash` scripts and
|
||||||
@ -85,3 +85,9 @@ repos:
|
|||||||
- id: sphinx-lint
|
- id: sphinx-lint
|
||||||
# NOTE Looks like `bad-dedent` gives too many false-positives.
|
# NOTE Looks like `bad-dedent` gives too many false-positives.
|
||||||
args: ['--disable', 'bad-dedent']
|
args: ['--disable', 'bad-dedent']
|
||||||
|
|
||||||
|
- repo: https://github.com/codespell-project/codespell
|
||||||
|
rev: v2.4.0
|
||||||
|
hooks:
|
||||||
|
- id: codespell
|
||||||
|
stages: [commit-msg, pre-commit]
|
||||||
|
Loading…
Reference in New Issue
Block a user