summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2013-05-18 08:29:02 -0700
committerMonty Taylor <mordred@inaugust.com>2013-05-18 08:29:02 -0700
commitca17541f33b4c65af7fe43e4de856334a8a866cd (patch)
tree1af6ede8e4a5f74fe2da338e2493a8bbfbf79d0c
parent8451a9482202fee5a4302bb3d7c62cff55365b0c (diff)
downloadpython-glanceclient-ca17541f33b4c65af7fe43e4de856334a8a866cd.tar.gz
Migrate to flake8.
Fixes bug 1172444. Change-Id: Icec0820d0f780ed9473218b7e46e29c1e3db6541
-rw-r--r--tools/test-requires7
-rw-r--r--tox.ini7
2 files changed, 12 insertions, 2 deletions
diff --git a/tools/test-requires b/tools/test-requires
index e5c86ef..2bda8db 100644
--- a/tools/test-requires
+++ b/tools/test-requires
@@ -1,10 +1,15 @@
distribute>=0.6.24
+# Install bounded pep8/pyflakes first, then let flake8 install
+pep8==1.4.5
+pyflakes==0.7.2
+flake8==2.0
+hacking>=0.5.3,<0.6
+
coverage
discover
mox
mock>=0.8.0
-pep8==1.3.3
setuptools-git>=0.4
sphinx>=1.1.2
testrepository>=0.0.13
diff --git a/tox.ini b/tox.ini
index 17bb172..e4d9772 100644
--- a/tox.ini
+++ b/tox.ini
@@ -14,7 +14,7 @@ deps = -r{toxinidir}/tools/pip-requires
commands = python setup.py testr --testr-args='{posargs}'
[testenv:pep8]
-commands = pep8 --repeat --show-source --exclude=.venv,.tox,dist,doc,*egg .
+commands = flake8
[testenv:venv]
commands = {posargs}
@@ -24,3 +24,8 @@ commands = python setup.py testr --coverage --testr-args='{posargs}'
[tox:jenkins]
downloadcache = ~/cache/pip
+
+[flake8]
+ignore = F,H
+show-source = True
+exclude = .venv,.tox,dist,doc,*egg