chore: move codespell configuration in its own file

Rather than passing the various bits for codespell when running it via
meson, create a configuration file for them. This way it will be
possible to run codespell manually getting the same results.

There is no change to the actual codespell configuration.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
This commit is contained in:
Pino Toscano 2025-01-09 15:50:18 +01:00 committed by Pavel Hrdina
parent 412c5d1ad3
commit 2724194c87
2 changed files with 3 additions and 2 deletions

3
.codespellrc Normal file
View File

@ -0,0 +1,3 @@
[codespell]
ignore-words = tests/data/codespell_dict.txt
skip = *.pyc,*.iso,*.xml,NEWS.md

View File

@ -55,8 +55,6 @@ if codespell_prog.found()
'codespell',
codespell_prog,
args: [
'--ignore-words', 'tests/data/codespell_dict.txt',
'--skip', '*.pyc,*.iso,*.xml,NEWS.md',
spell_files,
],
workdir: meson.project_source_root(),