Skip package install in pep8 tox env

pep8 only runs pre-commit and does not need ironic or its
runtime dependencies. Installing them currently fails under
upper-constraints because oslo.db requires testscenarios.

Change-Id: I766389db94c6db1684fec70ce0c43f7a94725212
Signed-off-by: Riccardo Pittau <elfosardo@gmail.com>
This commit is contained in:
Riccardo Pittau committed 2026-09-23 15:47:27 +02:00
1 parent 43be39c8ac
commit bb1345ca93
1 file changed
+5
+5
View File
@@ -40,16 +40,21 @@ deps = {[testenv]deps}
commands = {toxinidir}/tools/states_to_dot.py -f {toxinidir}/doc/source/images/states.svg --format svg
[testenv:pep8]
# NOTE(rpittau): pep8 only runs pre-commit; skip installing ironic and
# its runtime dependencies.
skip_install = true
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure {posargs}
[testenv:bandit]
skip_install = true
deps = {[testenv:pep8]deps}
commands = pre-commit run --all-files --show-diff-on-failure bandit
[testenv:codespell]
description =
Run codespell to check spelling
skip_install = true
deps = {[testenv:pep8]deps}
commands = pre-commit run --all-files --show-diff-on-failure codespell