diff --git a/setup.cfg b/setup.cfg index 5a3592650..e2d2d0ed7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -89,3 +89,9 @@ oslo.policy.enforcer = ironic_inspector = ironic_inspector.policy:get_oslo_policy_enforcer oslo.policy.policies = ironic_inspector.api = ironic_inspector.policy:list_policies + +[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 861bbd484..413687a1c 100644 --- a/tox.ini +++ b/tox.ini @@ -127,3 +127,11 @@ commands = bandit -r ironic_inspector -x test -n 5 -ll -c tools/bandit.yml deps = bindep commands = bindep test +[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