Make sure external commands are allowed

... otherwise tox refuses executing these commands. Also, bumps the min
version so that the version which supports allowlist_externals is used.

Change-Id: I3d8fc840a31b4226bf4ef2b60ec618735a2da642
This commit is contained in:
Takashi Kajinami 2023-01-05 18:56:50 +09:00
parent 275a56fc2a
commit dc949aea66
1 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,5 @@
[tox] [tox]
minversion = 2.0 minversion = 3.18
skipsdist = True skipsdist = True
envlist = pep8,py envlist = pep8,py
@ -17,7 +17,9 @@ commands = stestr run --slowest {posargs}
commands = {posargs} commands = {posargs}
[testenv:pep8] [testenv:pep8]
commands = ./run-flake8 allowlist_externals =
bash
commands = bash run-flake8
[flake8] [flake8]
ignore = E125,H803 ignore = E125,H803
@ -27,4 +29,6 @@ show-source = true
[testenv:releasenotes] [testenv:releasenotes]
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt -r{toxinidir}/doc/requirements.txt
allowlist_externals =
bash
commands = bash -c tools/releasenotes_tox.sh commands = bash -c tools/releasenotes_tox.sh