From 2cfc6f625ff203f727fe44417033f8f7b1a58a1e Mon Sep 17 00:00:00 2001 From: Kate Hsuan Date: Tue, 7 Jan 2025 13:49:05 +0800 Subject: [PATCH] ci: Add codespell test to the pre-commit test --- .pre-commit-config.yaml | 5 +++++ contrib/codespell.cfg | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 contrib/codespell.cfg diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8899697..8bab029 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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] diff --git a/contrib/codespell.cfg b/contrib/codespell.cfg new file mode 100644 index 0000000..c9be655 --- /dev/null +++ b/contrib/codespell.cfg @@ -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 \ No newline at end of file