always use python2.7 for pep8
pep8 doesn't work with python3 on our codebase. If someone is on a platform that defaults to python => python3, pep8 won't work for them. This is actually really easy to fix with a single line in tox. Change-Id: I7a888e4f7cc828638a9d61d2249a854ba1f3cb7b Closes-Bug: #1456955
This commit is contained in:
parent
78c2af13bc
commit
e82a2b3580
1
tox.ini
1
tox.ini
@ -31,6 +31,7 @@ passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
||||
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
||||
|
||||
[testenv:pep8]
|
||||
basepython = python2.7
|
||||
commands =
|
||||
bash tools/flake8wrap.sh {posargs}
|
||||
# Check that .po and .pot files are valid.
|
||||
|
Loading…
x
Reference in New Issue
Block a user