diff --git a/setup.cfg b/setup.cfg index fd26cd6..77bbb5c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -34,3 +34,8 @@ data_files = [entry_points] console_scripts = metalsmith = metalsmith._cmd:main + +[codespell] +quiet-level = 4 +# Words to ignore: +# ignore-words-list = example \ No newline at end of file diff --git a/tox.ini b/tox.ini index ecab5cf..3974fb5 100644 --- a/tox.ini +++ b/tox.ini @@ -17,7 +17,7 @@ deps = -r{toxinidir}/test-requirements.txt commands = stestr run {posargs} -passenv = +passenv = http_proxy HTTP_PROXY https_proxy @@ -119,3 +119,12 @@ deps = ansible-lint>=5,<6 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