From bb1345ca93a459a600e2a86c5f3c83e3f7f8f1e0 Mon Sep 17 00:00:00 2001 From: Riccardo Pittau Date: Wed, 23 Sep 2026 15:47:12 +0200 Subject: [PATCH] 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 --- tox.ini | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tox.ini b/tox.ini index fe0c6215c61..9dc0c713693 100644 --- a/tox.ini +++ b/tox.ini @@ -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