Switch to flake8 from pep8.

Change-Id: Ib7e1e51e644dbdfc530a7c5ca3005dd73ffa3f79
This commit is contained in:
Monty Taylor 2013-03-24 14:37:31 +01:00 committed by Clark Boylan
parent 254da41997
commit 3be868a923
2 changed files with 9 additions and 2 deletions

View File

@ -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"

10
tox.ini
View File

@ -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