ci: Add codespell test to the pre-commit test

This commit is contained in:
Kate Hsuan 2025-01-07 13:49:05 +08:00
parent 9fac8f2ae2
commit 2cfc6f625f
2 changed files with 9 additions and 0 deletions

View file

@ -24,3 +24,8 @@ repos:
- id: check-merge-conflict
- id: mixed-line-ending
args: [--fix=lf]
- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
hooks:
- id: codespell
args: ['--config', './contrib/codespell.cfg', --write-changes]

4
contrib/codespell.cfg Normal file
View file

@ -0,0 +1,4 @@
[codespell]
builtin = clear,informal,en-GB_to_en-US
skip = *.po,*.csv,*.svg,*.p7c,subprojects,.git,pcrs,build*,.ossfuzz,*/tests/*,contrib/codespell.cfg
ignore-words-list = conexant,Conexant,gir,GIR,hsi,HSI,cancelled,Cancelled,te,mitre,distroname,wel,FPT,$FPT,inout,som,SoM