From 05583d14966a366f0d37753b81c8f72c87126348 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Fri, 19 Feb 2016 21:10:42 -0500 Subject: [PATCH] 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 --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index df5d96bdf3..2b097a271a 100644 --- a/tox.ini +++ b/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.