diff --git a/setup.cfg b/setup.cfg index a11437f7..bc08b343 100644 --- a/setup.cfg +++ b/setup.cfg @@ -25,3 +25,7 @@ classifier = [files] packages = ironic_ui + +[codespell] +quiet-level = 4 +skip = *.po,*.pot \ No newline at end of file diff --git a/tox.ini b/tox.ini index 120aa4ce..2a172ffe 100644 --- a/tox.ini +++ b/tox.ini @@ -102,3 +102,11 @@ commands = -k npgettext:1c,2,3 -k pgettext_lazy:1c,2 -k npgettext_lazy:1c,2,3 \ --add-comments Translators: ironic_ui +[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