From e39e3385b5b3dc6be6d87b5ab7708f53e552cdfa Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Wed, 19 Jun 2013 22:32:55 -0700 Subject: [PATCH] Switch from pep8 to flake8/hacking. Use flake8/hacking, as is standard in other OpenStack projects, but disable new checks -- they will be enabled in later patches. Flake8 catches many useful things http://flake8.readthedocs.org/en/2.0/warnings.html, and hacking enforces the OpenStack Style guidelines, including things like one import per line and alphabetical imports in order to make merging easier. Change-Id: Ib43f7a6790bc17c0b4efdda0a5f891b5a90303c4 --- tox.ini | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/tox.ini b/tox.ini index ef07a1a48..1134f9db2 100644 --- a/tox.ini +++ b/tox.ini @@ -23,13 +23,10 @@ deps= discover argparse -[pep8] -ignore = E125 - [testenv:pep8] -deps = pep8 -commands = - pep8 --repeat --show-source --exclude=.venv,.tox,doc . +deps = hacking>=0.5.3,<0.6 +commands = + flake8 {posargs} [testenv:venv] commands = {posargs} @@ -41,3 +38,9 @@ commands = bash -c 'if [ ! -d ./.testrepository ] ; then testr init ; fi' [tox:jenkins] downloadcache = ~/cache/pip + +[flake8] +ignore = E125,F,H +builtins = _ +exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build +