feat(pre-commit): add codespell to detect and fix typos

This commit is contained in:
morris
2024-03-25 12:57:55 +08:00
parent 8d6e8f6051
commit 2ee266c0d6
2 changed files with 8 additions and 0 deletions

4
.codespellrc Normal file
View File

@@ -0,0 +1,4 @@
[codespell]
skip = build,*.yuv
ignore-words-list = ser,dout,rsource
write-changes = true

View File

@@ -51,6 +51,10 @@ repos:
(?x)^( (?x)^(
.*_pb2.py .*_pb2.py
)$ )$
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
- repo: local - repo: local
hooks: hooks:
- id: check-executables - id: check-executables