Skip to content

Commit 1638483

Browse files
committed
[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: I0965f2a12ca5097d8b4aa5daec5acf149cde8ab5
1 parent 9d89e88 commit 1638483

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

setup.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,9 @@ generic_switch.devices =
5454
netmiko_fake = networking_generic_switch.devices.netmiko_devices.fake:Fake
5555
tempest.test_plugins =
5656
ngs_tests = tempest_plugin.plugin:NGSTempestPlugin
57+
58+
[codespell]
59+
quiet-level = 4
60+
# Words to ignore:
61+
# cna: Intel CNA card
62+
ignore-words-list = cna

tox.ini

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,13 @@ commands =
9999

100100
[hacking]
101101
import_exceptions = networking_generic_switch._i18n
102+
103+
[testenv:codespell]
104+
description =
105+
Run codespell to check spelling
106+
deps = codespell
107+
# note(JayF): {posargs} lets us run `tox -ecodespell -- -w` to get codespell
108+
# to correct spelling issues in our code it's aware of.
109+
commands =
110+
codespell {posargs}
111+

0 commit comments

Comments
 (0)