From d4a3523fc126f5ce63d74bb4a20ca7e412f5d20b Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Sat, 7 Sep 2024 00:07:52 -0500 Subject: [PATCH] trivial: add codespell configuration --- .pre-commit-config.yaml | 2 +- NEWS | 4 ++-- data/codespell.cfg | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 data/codespell.cfg diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 355b4e9..ef1316d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: diff --git a/NEWS b/NEWS index ca333a7..c1de0d8 100644 --- a/NEWS +++ b/NEWS @@ -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. diff --git a/data/codespell.cfg b/data/codespell.cfg new file mode 100644 index 0000000..061f382 --- /dev/null +++ b/data/codespell.cfg @@ -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