[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: I90886dbb7ad7adf5520f8cc436012fa63c89ca78
This commit is contained in:
Sharpz7 2024-01-26 05:18:23 +00:00
parent 78c91596ff
commit f78a80ccb9
2 changed files with 15 additions and 0 deletions

View File

@ -37,3 +37,9 @@ virtualbmc =
stop = virtualbmc.cmd.vbmc:StopCommand
list = virtualbmc.cmd.vbmc:ListCommand
show = virtualbmc.cmd.vbmc:ShowCommand
[codespell]
quiet-level = 4
# Words to ignore:
# cna: Intel CNA card
ignore-words-list = cna

View File

@ -76,3 +76,12 @@ import-order-style = pep8
application-import-names = virtualbmc
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
max-complexity=17
[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}