[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: I659e85270fa0024f69f57ffd6002c2eb20c3b1f4
This commit is contained in:
Sharpz7 2024-01-26 04:05:08 +00:00
parent 70cb6fd86e
commit 509d12e60a
2 changed files with 14 additions and 0 deletions

View File

@ -30,3 +30,8 @@ packages =
oslo.messaging.notify.drivers =
prometheus_exporter = ironic_prometheus_exporter.messaging:PrometheusFileDriver
file_exporter = ironic_prometheus_exporter.messaging:SimpleFileDriver
[codespell]
quiet-level = 4
# Words to ignore:
; ignore-words-list = example

View File

@ -72,3 +72,12 @@ application-import-names = ironic_prometheus_exporter
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
import-order-style = pep8
show-source = True
[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}