Skip to content

Commit

Permalink
add codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach committed Mar 18, 2023
1 parent 9c1d834 commit d9fee4c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
Empty file added .codespell/exclude-file.txt
Empty file.
4 changes: 4 additions & 0 deletions .codespell/ignore-words.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ans
ure
clen
ser
10 changes: 10 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9fee4c

Please sign in to comment.