[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:
parent
78c91596ff
commit
f78a80ccb9
@ -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
|
9
tox.ini
9
tox.ini
@ -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}
|
Loading…
Reference in New Issue
Block a user