mirror of
https://github.com/ElementsProject/lightning.git
synced 2026-08-13 12:32:55 +02:00
devtools: Add codespell to pre-commit.
Includes default config file and an initial word list to ignore.
This commit is contained in:
parent
6e50148bcd
commit
969bd22d2f
3 changed files with 15 additions and 0 deletions
3
.codespellignore
Normal file
3
.codespellignore
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
connectd
|
||||
crate
|
||||
mut
|
||||
4
.codespellrc
Normal file
4
.codespellrc
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[codespell]
|
||||
|
||||
count = true
|
||||
ignore-words = .codespellignore
|
||||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue