diff --git a/setup.cfg b/setup.cfg index e9f42b0..bda4250 100644 --- a/setup.cfg +++ b/setup.cfg @@ -30,3 +30,8 @@ packages = oslo.messaging.notify.drivers = prometheus_exporter = ironic_prometheus_exporter.messaging:PrometheusFileDriver file_exporter = ironic_prometheus_exporter.messaging:SimpleFileDriver + +[codespell] +quiet-level = 4 +# Words to ignore: +; ignore-words-list = example diff --git a/tox.ini b/tox.ini index 1113a0e..ee9a8ba 100644 --- a/tox.ini +++ b/tox.ini @@ -72,3 +72,12 @@ application-import-names = ironic_prometheus_exporter exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build import-order-style = pep8 show-source = True + +[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