e5ae1ed54a
This patch makes tox 4 the default so that we can hopefully catch problems locally before they block the gate. tox changes: - removed skipsdist=True, which in tox 4 appears to break the pep8 testenv (which runs check-uuid) - made 4.0.0 the tox minversion zuul changes: - make the tgt job non-voting (it's failing on jammy, and we may be removing tgt support anyway) Change-Id: Ic5ebb60b96d795ac0f14882772d26e6d4adca37b
45 lines
1.3 KiB
INI
45 lines
1.3 KiB
INI
[tox]
|
|
minversion = 4.0.0
|
|
# specify virtualenv here to keep local runs consistent with the
|
|
# gate (it sets the versions of pip, setuptools, and wheel)
|
|
requires = virtualenv>=20.17.1
|
|
envlist = pep8
|
|
# this allows tox to infer the base python from the environment name
|
|
# and override any basepython configured in this file
|
|
ignore_basepython_conflict=true
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
usedevelop = True
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
PYTHONWARNINGS=default::DeprecationWarning
|
|
OS_LOG_CAPTURE={env:OS_LOG_CAPTURE:true}
|
|
OS_STDOUT_CAPTURE={env:OS_STDOUT_CAPTURE:true}
|
|
OS_STDERR_CAPTURE={env:OS_STDERR_CAPTURE:true}
|
|
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = stestr run --slowest {posargs}
|
|
|
|
[testenv:pep8]
|
|
commands =
|
|
flake8 {posargs}
|
|
check-uuid --package cinder_tempest_plugin
|
|
|
|
[testenv:uuidgen]
|
|
commands = check-uuid --fix --package cinder_tempest_plugin
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
# W503 line break before binary operator
|
|
# W504 line break after binary operator
|
|
# H101 include name with TODO
|
|
# reason: no real benefit
|
|
show-source = True
|
|
ignore = E123,E125,W503,W504,H101
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|