[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: I2db37013bdfa85055be9f1a620424ea50e993da0
This commit is contained in:
parent
4529d48afe
commit
f1d47a9f48
@ -28,3 +28,10 @@ packages =
|
|||||||
console_scripts =
|
console_scripts =
|
||||||
bifrost_inventory.py = bifrost.inventory:main
|
bifrost_inventory.py = bifrost.inventory:main
|
||||||
bifrost_inventory = bifrost.inventory:main
|
bifrost_inventory = bifrost.inventory:main
|
||||||
|
|
||||||
|
[codespell]
|
||||||
|
quiet-level = 4
|
||||||
|
# Words to ignore:
|
||||||
|
# - te: This is a file extension.
|
||||||
|
# - Buil: Surname (has to be lowercase in list)
|
||||||
|
ignore-words-list = te,buil
|
9
tox.ini
9
tox.ini
@ -83,3 +83,12 @@ deps =
|
|||||||
ansible-lint>=6,<7
|
ansible-lint>=6,<7
|
||||||
commands =
|
commands =
|
||||||
bash tools/ansible-lint.sh
|
bash tools/ansible-lint.sh
|
||||||
|
|
||||||
|
[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