From 383669b51b67d52a647ed1537894c7422a274979 Mon Sep 17 00:00:00 2001 From: Sharpz7 Date: Fri, 26 Jan 2024 04:22:44 +0000 Subject: [PATCH] [codespell] Adding Tox Target for Codespell Second in a series of commits to add Codespell to Ironic Repos. This one adds the command that was used to fix the spelling errors. Future Commits will add CI support and potentially a git-blame-ignore-revs file if their are lots of spelling mistakes that could clutter git blame. Change-Id: Id89f63b1ad08abdea875a579657e4e63e1cbcf88 --- setup.cfg | 4 ++++ tox.ini | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/setup.cfg b/setup.cfg index a11437f7..bc08b343 100644 --- a/setup.cfg +++ b/setup.cfg @@ -25,3 +25,7 @@ classifier = [files] packages = ironic_ui + +[codespell] +quiet-level = 4 +skip = *.po,*.pot \ No newline at end of file diff --git a/tox.ini b/tox.ini index 120aa4ce..2a172ffe 100644 --- a/tox.ini +++ b/tox.ini @@ -102,3 +102,11 @@ commands = -k npgettext:1c,2,3 -k pgettext_lazy:1c,2 -k npgettext_lazy:1c,2,3 \ --add-comments Translators: ironic_ui +[testenv:codespell] +description = + Run codespell to check spelling +deps = codespell +# note(JayF): {posargs} lets us run `tox -ecodespell -- -w` to get codespell +# to correct spelling issues in our code it's aware of. +commands = + codespell {posargs} \ No newline at end of file