Update tox ini file

Update tox to v4
Uplift promenade

Change-Id: I255e9dcf0ad9edc26069a1703fb5bf715cf67cf6
This commit is contained in:
SPEARS, DUSTIN (ds443n) 2023-04-20 12:23:11 -04:00
parent 770cf4256e
commit 52e9548c36
1 changed files with 14 additions and 7 deletions

21
tox.ini
View File

@ -14,8 +14,15 @@ setenv =
deps =
pipenv
setuptools < 58.0.0
passenv = http_proxy https_proxy HTTP_PROXY HTTPS_PROXY no_proxy NO_PROXY PBR_VERSION
whitelist_externals =
passenv =
http_proxy
https_proxy
HTTP_PROXY
HTTPS_PROXY
no_proxy
NO_PROXY
PBR_VERSION
allowlist_externals =
bash
find
commands =
@ -46,7 +53,7 @@ commands =
bandit -r pegleg -n 5
flake8 {toxinidir}/pegleg
yapf -dr {toxinidir}/pegleg {toxinidir}/tests
whitelist_externals =
allowlist_externals =
bash
[testenv:docs]
@ -58,7 +65,7 @@ deps =
commands =
pipenv install --dev
bash -c "{toxinidir}/tools/gate/build-docs.sh"
whitelist_externals =
allowlist_externals =
bash
[testenv:bandit]
@ -88,7 +95,7 @@ commands =
bash -c 'PATH=$PATH:~/.local/bin; pytest --cov=pegleg --cov-report \
html:cover --cov-report xml:cover/coverage.xml --cov-report term \
--cov-fail-under 87 tests/'
whitelist_externals =
allowlist_externals =
bash
[testenv:update-requirements]
@ -98,7 +105,7 @@ deps =
commands =
pipenv lock --clear
bash -c "pipenv lock -r > {toxinidir}/requirements.txt"
whitelist_externals =
allowlist_externals =
bash
[testenv:releasenotes]
@ -107,7 +114,7 @@ deps = -r{toxinidir}/doc/requirements.txt
commands =
rm -rf releasenotes/build
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
whitelist_externals =
allowlist_externals =
rm
[testenv:venv]