Skip to content

Commit e794aac

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

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

.codespellignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
connectd
2+
crate
3+
mut

.codespellrc

Lines changed: 4 additions & 0 deletions
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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ repos:
3131
exclude: ccan|contrib|tests/fuzz/corpora
3232
types: [ c ]
3333

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

0 commit comments

Comments
 (0)