[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: I2e356fb4dea543d6e57614394d439a6767498f8d
This commit is contained in:
Sharpz7 2024-01-25 21:22:18 +00:00
parent 98a226b9c6
commit fd0d8171b7
2 changed files with 14 additions and 0 deletions

View File

@ -89,3 +89,9 @@ oslo.policy.enforcer =
ironic_inspector = ironic_inspector.policy:get_oslo_policy_enforcer
oslo.policy.policies =
ironic_inspector.api = ironic_inspector.policy:list_policies
[codespell]
quiet-level = 4
# Words to ignore:
# cna: Intel CNA card
ignore-words-list = cna

View File

@ -127,3 +127,11 @@ commands = bandit -r ironic_inspector -x test -n 5 -ll -c tools/bandit.yml
deps = bindep
commands = bindep test
[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}