[codespell] Adding Tox Target for Codespell
First 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: Ibeb4cd8bd38e6bfe04adb8ce66ce36f30f06eb61
This commit is contained in:
parent
b3a79fa0c3
commit
778403a47b
@ -34,3 +34,8 @@ data_files =
|
|||||||
[entry_points]
|
[entry_points]
|
||||||
console_scripts =
|
console_scripts =
|
||||||
metalsmith = metalsmith._cmd:main
|
metalsmith = metalsmith._cmd:main
|
||||||
|
|
||||||
|
[codespell]
|
||||||
|
quiet-level = 4
|
||||||
|
# Words to ignore:
|
||||||
|
# ignore-words-list = example
|
11
tox.ini
11
tox.ini
@ -17,7 +17,7 @@ deps =
|
|||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
commands =
|
commands =
|
||||||
stestr run {posargs}
|
stestr run {posargs}
|
||||||
passenv =
|
passenv =
|
||||||
http_proxy
|
http_proxy
|
||||||
HTTP_PROXY
|
HTTP_PROXY
|
||||||
https_proxy
|
https_proxy
|
||||||
@ -119,3 +119,12 @@ deps =
|
|||||||
ansible-lint>=5,<6
|
ansible-lint>=5,<6
|
||||||
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