summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Toscano <ltoscano@redhat.com>2020-01-24 10:28:17 +0100
committerLuigi Toscano <ltoscano@redhat.com>2020-01-24 10:28:17 +0100
commit17555ff0f8e3e838cdce3972b8eba44dcbb8e5d0 (patch)
treeaa7165e8de3612c486ff8f5480f2e80d8cae22bf
parent1b63bdd0611c19c093b21a3bf21f743bc83790b6 (diff)
downloadpython-cinderclient-17555ff0f8e3e838cdce3972b8eba44dcbb8e5d0.tar.gz
Explicitly use python2.7 for linters and basic jobs
Queens is the last version before the introduction of the new PTI which switched the basic jobs to python3. Despite being EM, the pep8 job is failing because it tries to use python3 (now the default on the OpenDev-provided Zuul instances) but it is still worth fixing it. Change-Id: Ifa03268f3e062ee8e3b4453b48163cd5e504451d
-rw-r--r--tox.ini3
1 files changed, 3 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index c44af70..a5c1576 100644
--- a/tox.ini
+++ b/tox.ini
@@ -24,9 +24,11 @@ commands = find . -type f -name "*.pyc" -delete
whitelist_externals = find
[testenv:pep8]
+basepython = python2.7
commands = flake8
[testenv:pylint]
+basepython = python2.7
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/queens}
-r{toxinidir}/requirements.txt
@@ -62,6 +64,7 @@ deps =
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:functional]
+basepython = python2.7
commands = ostestr {posargs}
setenv =
{[testenv]setenv}