kgriffs 6ea84355c3 style: Migrate to the new hacking package on pypi
This removes the cloned Nova hacking.py in favor of the new OpenStack
hacking package on pypi. The new hacking module is a flake8 extension,
so running pep8 separately is no longer needed, and has been removed.

Note that some errors are currently being ignored; those will be fixed
in a followup patch.

Implements: blueprint grizzly-debt
Change-Id: I9d34b21d872a872b8c927717367023d3214ff38d
2013-05-06 10:44:21 -04:00

33 lines
707 B
INI

[tox]
envlist = py26,py27,pep8
[testenv]
setenv = VIRTUAL_ENV={envdir}
NOSE_WITH_OPENSTACK=1
NOSE_OPENSTACK_COLOR=1
NOSE_OPENSTACK_RED=0.05
NOSE_OPENSTACK_YELLOW=0.025
NOSE_OPENSTACK_SHOW_ELAPSED=1
NOSE_OPENSTACK_STDOUT=1
deps = -r{toxinidir}/tools/pip-requires
-r{toxinidir}/tools/test-requires
commands = nosetests {posargs}
[tox:jenkins]
sitepackages = True
downloadcache = ~/cache/pip
[testenv:pep8]
commands = flake8
[testenv:cover]
setenv = NOSE_WITH_COVERAGE=1
[testenv:venv]
commands = {posargs}
[flake8]
ignore = E128,H302,H304,H404
builtins = _,__MARCONI_SETUP__
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*