Update pylint target for python3 and upper constraints
This change imposes the upper constraint in tox to protect from
future releases causing random breakage.
Ex: A new version of python-libvirt was released Jan 23 2020
which will not install on python2.
This change also enables the python3 target for pylint which will
allow the upper constraint to be changed to a more recent version
when all the tox files are aligned.
Change-Id: I9056778085d32b3401df60c20d67cff0a21dfe97
Story: 2004515
Task: 38496
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
(cherry picked from commit 7b7959e9b5
)
This commit is contained in:
parent
a13f96e579
commit
f035853b25
@ -48,8 +48,8 @@ load-plugins=
|
||||
# W0703 broad except warning
|
||||
# W1201 logging-not-lazy
|
||||
# W1401 anomalous-backslash-in-string
|
||||
disable=C, R, E0203, E0602, E1101, E1205, fixme,
|
||||
W0102, W0105, W0106, W0201, W0212, W0221, W0231, W0235,
|
||||
disable=C, R, E0203, E0602, E1101, E1205, E1135, fixme,
|
||||
W0102, W0105, W0106, W0201, W0212, W0221, W0231, W0235, W0107,
|
||||
W0611, W0612, W0613, W0621, W0622, W0702, W0703, W1201, W1401
|
||||
|
||||
|
||||
|
6
tox.ini
6
tox.ini
@ -5,7 +5,9 @@ skipsdist = True
|
||||
stxdir = {toxinidir}/..
|
||||
|
||||
[testenv]
|
||||
install_command = pip install -U {opts} {packages}
|
||||
install_command = pip install -U \
|
||||
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt} \
|
||||
{opts} {packages}
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
OS_STDOUT_CAPTURE=1
|
||||
OS_STDERR_CAPTURE=1
|
||||
@ -78,7 +80,7 @@ commands =
|
||||
flake8
|
||||
|
||||
[testenv:pylint]
|
||||
basepython = python2.7
|
||||
basepython = python3
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
-e{[tox]stxdir}/update/tsconfig/tsconfig
|
||||
-e{[tox]stxdir}/fault/fm-api
|
||||
|
Loading…
Reference in New Issue
Block a user