Use older constraints file for linters requirements
Change-Id: Ic50b709dbfd9c245d2e3603bc61dff7e2b8921eb
This commit is contained in:
parent
5a9d0ecb95
commit
332ec6130a
15
tox.ini
15
tox.ini
@ -21,6 +21,7 @@ passenv =
|
||||
TOX_*
|
||||
PYTEST_*
|
||||
setenv =
|
||||
LC_ALL=en_US.UTF-8
|
||||
OS_LOG_CAPTURE = {env:OS_LOG_CAPTURE:true}
|
||||
OS_STDOUT_CAPTURE = {env:OS_STDOUT_CAPTURE:true}
|
||||
OS_STDERR_CAPTURE = {env:OS_STDERR_CAPTURE:true}
|
||||
@ -77,7 +78,11 @@ deps =
|
||||
-r{toxinidir}/linters-requirements.txt
|
||||
commands =
|
||||
pre-commit run -a flake8
|
||||
|
||||
setenv =
|
||||
{[testenv]setenv}
|
||||
#fressi: There is a conflict between the last global constrains file and pylint
|
||||
# requirements
|
||||
TOX_CONSTRAINTS_FILE = https://opendev.org/openstack/requirements/raw/branch/stable/xena/upper-constraints.txt
|
||||
|
||||
[testenv:mypy]
|
||||
|
||||
@ -86,6 +91,8 @@ deps = {[testenv:pep8]deps}
|
||||
envdir = {toxworkdir}/pep8
|
||||
commands =
|
||||
pre-commit run -a mypy
|
||||
setenv =
|
||||
{[testenv:pep8]setenv}
|
||||
|
||||
|
||||
[testenv:pylint]
|
||||
@ -94,6 +101,8 @@ deps = {[testenv:pep8]deps}
|
||||
envdir = {toxworkdir}/pep8
|
||||
commands =
|
||||
pre-commit run -a pylint
|
||||
setenv =
|
||||
{[testenv:pep8]setenv}
|
||||
|
||||
|
||||
[testenv:ansible-lint]
|
||||
@ -102,6 +111,8 @@ deps = {[testenv:pep8]deps}
|
||||
envdir = {toxworkdir}/pep8
|
||||
commands =
|
||||
pre-commit run -a ansible-lint
|
||||
setenv =
|
||||
{[testenv:pep8]setenv}
|
||||
|
||||
|
||||
[testenv:linters]
|
||||
@ -114,6 +125,8 @@ commands =
|
||||
pre-commit --version
|
||||
pre-commit run -a
|
||||
pre-commit install --allow-missing-config
|
||||
setenv =
|
||||
{[testenv:pep8]setenv}
|
||||
|
||||
|
||||
[flake8]
|
||||
|
Loading…
x
Reference in New Issue
Block a user