Skip to content

Commit d9fee4c

Browse files
committed
add codespell
1 parent 9c1d834 commit d9fee4c

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

.codespell/exclude-file.txt

Whitespace-only changes.

.codespell/ignore-words.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
ans
2+
ure
3+
clen
4+
ser

.codespellrc

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# See: https://github.com/codespell-project/codespell#using-a-config-file
2+
[codespell]
3+
# In the event of a false positive, add the problematic word, in all lowercase, to 'ignore-words.txt' (one word per line).
4+
# Or copy & paste the whole problematic line to 'exclude-file.txt'
5+
ignore-words = .codespell/ignore-words.txt
6+
exclude-file = .codespell/exclude-file.txt
7+
check-filenames =
8+
check-hidden =
9+
count =
10+
skip = .cproject,.git,./lib,./locale

.pre-commit-config.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ repos:
1111
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*|ports/espressif/esp-idf-config/.*|ports/espressif/boards/.*/sdkconfig)'
1212
- id: trailing-whitespace
1313
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*|lib/mbedtls_errors/.*)'
14+
- repo: https://github.com/codespell-project/codespell
15+
rev: v2.2.4
16+
hooks:
17+
- id: codespell
18+
#args: [-w]
19+
exclude: ^locale/
1420
- repo: local
1521
hooks:
1622
- id: translations

0 commit comments

Comments
 (0)