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

pull/13550/head
morris 2024-03-25 12:57:55 +08:00
rodzic 8d6e8f6051
commit 2ee266c0d6
2 zmienionych plików z 8 dodań i 0 usunięć

4
.codespellrc 100644
Wyświetl plik

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

Wyświetl plik

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