From 3be868a923615ae74bab3f45d99c56f02e74dbed Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Sun, 24 Mar 2013 14:37:31 +0100 Subject: [PATCH] Switch to flake8 from pep8. Change-Id: Ib7e1e51e644dbdfc530a7c5ca3005dd73ffa3f79 --- setup.py | 1 + tox.ini | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index b05a57a..8cdbad9 100755 --- a/setup.py +++ b/setup.py @@ -20,6 +20,7 @@ from setuptools.command.install import install import os.path import sys +version = None # version comes from git-review. savename = __name__ __name__ = "not-main" diff --git a/tox.ini b/tox.ini index 2d17b07..d1ec544 100644 --- a/tox.ini +++ b/tox.ini @@ -5,9 +5,15 @@ envlist = py26,py27,pep8 setenv = VIRTUAL_ENV={envdir} [testenv:pep8] -deps = pep8==1.3.1 +deps = flake8 argparse -commands = pep8 --ignore=E125 --repeat --show-source setup.py git-review +commands = flake8 [testenv:sdist] commands = python setup.py sdist {posargs} + +[flake8] +ignore = E125 +show-source = True +exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build +filename = git-review,setup.py