diff --git a/setup.cfg b/setup.cfg index 3c29faf46..66a9b7956 100644 --- a/setup.cfg +++ b/setup.cfg @@ -28,3 +28,10 @@ packages = console_scripts = bifrost_inventory.py = bifrost.inventory:main bifrost_inventory = bifrost.inventory:main + +[codespell] +quiet-level = 4 +# Words to ignore: +# - te: This is a file extension. +# - Buil: Surname (has to be lowercase in list) +ignore-words-list = te,buil \ No newline at end of file diff --git a/tox.ini b/tox.ini index e363409eb..3c5149c54 100644 --- a/tox.ini +++ b/tox.ini @@ -83,3 +83,12 @@ deps = ansible-lint>=6,<7 commands = 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} \ No newline at end of file