[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
2f74128822
commit
f0ba814923
@ -37,3 +37,9 @@ virtualbmc =
|
|||||||
stop = virtualbmc.cmd.vbmc:StopCommand
|
stop = virtualbmc.cmd.vbmc:StopCommand
|
||||||
list = virtualbmc.cmd.vbmc:ListCommand
|
list = virtualbmc.cmd.vbmc:ListCommand
|
||||||
show = virtualbmc.cmd.vbmc:ShowCommand
|
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
|
application-import-names = virtualbmc
|
||||||
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
||||||
max-complexity=17
|
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