Skip to content

Commit

Permalink
chore: Add codespell to pre-commit.
Browse files Browse the repository at this point in the history
Includes default config file and an initial word list to ignore.
  • Loading branch information
s373nZ committed Dec 16, 2024
1 parent aaf2f08 commit 41003ee
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .codespellignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
connectd
crate
mut
4 changes: 4 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[codespell]

count = true
ignore-words = .codespellignore
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ repos:
entry: clang-format
types: [ c ]

- 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

- repo: local
hooks:
# Reimplementation of `make check-amount-access` for pygrep.
Expand Down

0 comments on commit 41003ee

Please sign in to comment.