[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
This commit is contained in:
Sharpz7 2024-01-26 04:22:44 +00:00 committed by Adam McArthur
parent be40bbba3e
commit 383669b51b
2 changed files with 12 additions and 0 deletions

View File

@ -25,3 +25,7 @@ classifier =
[files]
packages =
ironic_ui
[codespell]
quiet-level = 4
skip = *.po,*.pot

View File

@ -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}