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:
parent
5d5a613ab4
commit
15b1bc6ee1
5
setup.py
5
setup.py
@ -1,7 +1,7 @@
|
|||||||
import datetime
|
import datetime
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
ci_cmdclass={}
|
ci_cmdclass = {}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from sphinx.setup_command import BuildDoc
|
from sphinx.setup_command import BuildDoc
|
||||||
@ -17,7 +17,8 @@ except Exception:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
setup(name='nova',
|
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",
|
description="OpenStack Continuous Integration Scripts",
|
||||||
author="OpenStack CI Team",
|
author="OpenStack CI Team",
|
||||||
author_email="openstack-ci@lists.launchpad.net",
|
author_email="openstack-ci@lists.launchpad.net",
|
||||||
|
6
tox.ini
6
tox.ini
@ -1,6 +1,10 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = pyflakes
|
envlist = pyflakes,pep8
|
||||||
|
|
||||||
[testenv:pyflakes]
|
[testenv:pyflakes]
|
||||||
deps = pyflakes
|
deps = pyflakes
|
||||||
commands = pyflakes modules setup.py
|
commands = pyflakes modules setup.py
|
||||||
|
|
||||||
|
[testenv:pep8]
|
||||||
|
deps = pep8
|
||||||
|
commands = pep8 --count --repeat --show-source --exclude=.tox setup.py
|
||||||
|
Loading…
x
Reference in New Issue
Block a user