Merge "[codespell] Adding Tox Target for Codespell"

This commit is contained in:
Zuul 2024-01-29 13:24:11 +00:00 committed by Gerrit Code Review
commit 945c76de1d
2 changed files with 14 additions and 0 deletions

View File

@ -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

View File

@ -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}