Skip to content

Commit 41003ee

Browse files
committed
chore: Add codespell to pre-commit.
Includes default config file and an initial word list to ignore.
1 parent aaf2f08 commit 41003ee

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

.codespellignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
connectd
2+
crate
3+
mut

.codespellrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[codespell]
2+
3+
count = true
4+
ignore-words = .codespellignore

.pre-commit-config.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ repos:
3030
entry: clang-format
3131
types: [ c ]
3232

33+
- repo: https://github.com/codespell-project/codespell
34+
rev: v2.3.0
35+
hooks:
36+
- id: codespell
37+
description: Checks for common misspellings.
38+
exclude: ccan|contrib|tests/fuzz/corpora
39+
3340
- repo: local
3441
hooks:
3542
# Reimplementation of `make check-amount-access` for pygrep.

0 commit comments

Comments
 (0)