From dc949aea66fcc3d6234e7f03e30d0712db447781 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Thu, 5 Jan 2023 18:56:50 +0900 Subject: [PATCH] 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 --- tox.ini | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 51cb61825..e74476762 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -minversion = 2.0 +minversion = 3.18 skipsdist = True envlist = pep8,py @@ -17,7 +17,9 @@ commands = stestr run --slowest {posargs} commands = {posargs} [testenv:pep8] -commands = ./run-flake8 +allowlist_externals = + bash +commands = bash run-flake8 [flake8] ignore = E125,H803 @@ -27,4 +29,6 @@ show-source = true [testenv:releasenotes] deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/doc/requirements.txt +allowlist_externals = + bash commands = bash -c tools/releasenotes_tox.sh