add codespell

This commit is contained in:
hathach 2023-03-18 21:28:45 +07:00
parent 9c1d83476e
commit d9fee4c354
No known key found for this signature in database
GPG Key ID: F5D50C6D51D17CBA
4 changed files with 20 additions and 0 deletions

View File

View File

@ -0,0 +1,4 @@
ans
ure
clen
ser

10
.codespellrc Normal file
View File

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

View File

@ -11,6 +11,12 @@ repos:
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*|ports/espressif/esp-idf-config/.*|ports/espressif/boards/.*/sdkconfig)'
- id: trailing-whitespace
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*|lib/mbedtls_errors/.*)'
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
hooks:
- id: codespell
#args: [-w]
exclude: ^locale/
- repo: local
hooks:
- id: translations