From 7cfe9fe177af501ab8bd0547f5568a772b61520c Mon Sep 17 00:00:00 2001 From: Sharpz7 Date: Mon, 29 Jan 2024 18:55:04 +0000 Subject: [PATCH] [codespell] Adding Tox Target for Codespell Second in a series of commits to add Codespell to Ironic Repos. This one adds the command that was used to fix the spelling errors. Future Commits will add CI support and potentially a git-blame-ignore-revs file if their are lots of spelling mistakes that could clutter git blame. Change-Id: Ie92e24f7181f37a7b9a6a960a2c5d6ec0eb08773 --- setup.cfg | 5 +++++ tox.ini | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/setup.cfg b/setup.cfg index e0efd56..7791698 100644 --- a/setup.cfg +++ b/setup.cfg @@ -25,3 +25,8 @@ classifier = [files] packages = tenks + +[codespell] +quiet-level = 4 +# Words to ignore: +; ignore-words-list = example diff --git a/tox.ini b/tox.ini index faac840..8851a57 100644 --- a/tox.ini +++ b/tox.ini @@ -95,3 +95,12 @@ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build import-order-style = pep8 application-import-names = tenks filename = *.py + +[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