diff --git a/setup.cfg b/setup.cfg index 7a548f5b4..2ee46a2cc 100644 --- a/setup.cfg +++ b/setup.cfg @@ -135,3 +135,9 @@ openstack.baremetal.v1 = [extras] cli = python-openstackclient>=3.12.0 # Apache-2.0 + +[codespell] +quiet-level = 4 +# Words to ignore: +# cna: Intel CNA card +ignore-words-list = cna \ No newline at end of file diff --git a/tox.ini b/tox.ini index 6e8ca223c..bc7174c7e 100644 --- a/tox.ini +++ b/tox.ini @@ -87,3 +87,12 @@ application-import-names = ironicclient [hacking] import_exceptions = testtools.matchers, ironicclient.common.i18n + +[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} \ No newline at end of file