trivial: add codespell configuration

This commit is contained in:
Mario Limonciello 2024-09-07 00:07:52 -05:00
parent 5762933b30
commit d4a3523fc1
3 changed files with 7 additions and 3 deletions

View file

@ -27,7 +27,7 @@ repos:
rev: v2.2.6
hooks:
- id: codespell
args: ['--write-changes']
args: ['--config', './data/codespell.cfg', '--write-changes']
- repo: https://github.com/ambv/black
rev: 23.12.0
hooks:

4
NEWS
View file

@ -111,7 +111,7 @@ on some systems with controllable charge speeds.
0.10.1
------
This release fixes a bug in the authorisation codepath added in 0.10.0, where holding
This release fixes a bug in the authorization codepath added in 0.10.0, where holding
a profile could still succeed despite having sent a denial to the calling process.
This release also makes the pylint test optional. It should not be used unless the goal
@ -120,7 +120,7 @@ is to contribute patches to assuage it.
0.10.0
------
This release adds authorisation checks for the profile holds and profile switching
This release adds authorization checks for the profile holds and profile switching
features of the backend daemon, through polkit. It is recommended that all
distributions upgrade to this version as soon as possible.

4
data/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*,data/codespell.cfg
ignore-words-list = optin