Skip to content

Commit 5160071

Browse files
committed
Add codespell pre-commit hook
1 parent 3682309 commit 5160071

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ repos:
5454
types: [file]
5555
exclude: NEWS.rst # The errors flagged in NEWS.rst are old.
5656

57+
- repo: https://github.com/codespell-project/codespell
58+
rev: v2.2.6
59+
hooks:
60+
- id: codespell
61+
exclude: AUTHORS.txt|tests/data
62+
args: ["--ignore-words", tools/codespell-ignore.txt]
63+
5764
- repo: local
5865
hooks:
5966
- id: news-fragment-filenames
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add codespell pre-commit hook to catch common misspellings.

tools/codespell-ignore.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)