Include pep8 target with tox.

* setup.py
  Fix pep8 errors. Thanks to tox!

* tox.ini
  New target, pep8.

Change-Id: Iaa24807b4284f27918e486234c6b080fc78bc71d
This commit is contained in:
Bhuvan Arumugam 2012-06-15 23:25:59 -07:00
parent 5d5a613ab4
commit 15b1bc6ee1
2 changed files with 8 additions and 3 deletions

View File

@ -1,7 +1,7 @@
import datetime
from setuptools import setup
ci_cmdclass={}
ci_cmdclass = {}
try:
from sphinx.setup_command import BuildDoc
@ -17,7 +17,8 @@ except Exception:
pass
setup(name='nova',
version="%d.%02d" % (datetime.datetime.now().year, datetime.datetime.now().month),
version="%d.%02d" % (datetime.datetime.now().year,
datetime.datetime.now().month),
description="OpenStack Continuous Integration Scripts",
author="OpenStack CI Team",
author_email="openstack-ci@lists.launchpad.net",

View File

@ -1,6 +1,10 @@
[tox]
envlist = pyflakes
envlist = pyflakes,pep8
[testenv:pyflakes]
deps = pyflakes
commands = pyflakes modules setup.py
[testenv:pep8]
deps = pep8
commands = pep8 --count --repeat --show-source --exclude=.tox setup.py