mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2025-12-20 04:20:04 +01:00
ci: Add codespell test to the pre-commit test
This commit is contained in:
parent
9fac8f2ae2
commit
2cfc6f625f
2 changed files with 9 additions and 0 deletions
|
|
@ -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
4
contrib/codespell.cfg
Normal 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
|
||||
Loading…
Add table
Reference in a new issue