]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Pin pep8 to 1.3.3
authorChuck Short <chuck.short@canonical.com>
Fri, 1 Mar 2013 14:21:31 +0000 (08:21 -0600)
committerChuck Short <chuck.short@canonical.com>
Mon, 4 Mar 2013 18:51:36 +0000 (12:51 -0600)
Part of making pep8 version standard across all openstack
projects.

Fixes LP: #1143569

Change-Id: Iefc923123243df161ed72888c1651a622afbda04
Signed-off-by: Chuck Short <chuck.short@canonical.com>
tools/test-requires
tox.ini

index aa85c1bf8bea6ec6a07669c31b0d83fa519f4456..f7e962b25e722dfb10bf3470a3ec71ab1e531aa1 100644 (file)
@@ -10,7 +10,7 @@ nose
 nosehtmloutput
 nosexcover
 openstack.nose_plugin
-pep8
+pep8==1.3.3
 python-subunit
 sphinx>=1.1.2
 testrepository>=0.0.13
diff --git a/tox.ini b/tox.ini
index 3b4fadeafd41835838435fc7880fce3bf0158763..20a7f545f89ff832a581cb8a3e1a4dd2cf37a007 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -19,12 +19,12 @@ sitepackages = True
 downloadcache = ~/cache/pip
 
 [testenv:pep8]
-# E712 comparison to False should be 'if cond is False:' or 'if not cond:'
+# E711/E712 comparison to False should be 'if cond is False:' or 'if not cond:'
 #        query = query.filter(Component.disabled == False)
 # E125 continuation line does not distinguish itself from next logical line
 
 commands =
-  pep8 --repeat --show-source --ignore=E125,E712 --exclude=.venv,.tox,dist,doc,openstack,*egg .
+  pep8 --repeat --show-source --ignore=E125,E711,E712 --exclude=.venv,.tox,dist,doc,openstack,*egg .
   pep8 --repeat --show-source --ignore=E125 --filename=quantum* bin
 
 [testenv:i18n]