Merge "Switch to flake8 from pep8."

This commit is contained in:
Jenkins 2013-04-05 00:07:57 +00:00 committed by Gerrit Code Review
commit 3521d7c6cd
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