devtools: Add codespell to pre-commit.

Includes default config file and an initial word list to ignore.
This commit is contained in:
Se7enZ
2024-12-16 19:13:38 +01:00
committed by Sangbida
parent 6e50148bcd
commit 969bd22d2f
3 changed files with 15 additions and 0 deletions

3
.codespellignore Normal file
View File

@@ -0,0 +1,3 @@
connectd
crate
mut

4
.codespellrc Normal file
View File

@@ -0,0 +1,4 @@
[codespell]
count = true
ignore-words = .codespellignore

View File

@@ -18,6 +18,14 @@ repos:
- id: shellcheck
args: [ -fgcc ]
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
description: Checks for common misspellings.
exclude: ccan|contrib|tests/fuzz/corpora
stages: [ manual ]
- repo: local
hooks:
# Reimplementation of `make check-amount-access` for pygrep.