From 78423c31935807fccbdf0ac880519f8d7c7450e7 Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Tue, 17 Jun 2014 15:21:04 -0700 Subject: [PATCH] Use hacking from test-requirements Just like all other OpenStack projects use the hacking version from test-requirements. Also install all dependencies before running flake8 so we can do import analysis such has H302. Turn off H302 until the existing are resolved. Change-Id: I6c5a983025406c1ebd4b537b95c6e8ce97849898 --- tox.ini | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index 59489b9ac..88746d512 100644 --- a/tox.ini +++ b/tox.ini @@ -20,8 +20,6 @@ setenv = VIRTUAL_ENV={envdir} commands = bash -x {toxinidir}/setup-test-env.sh python setup.py testr --slowest --coverage --testr-args="{posargs}" [testenv:pep8] -# Install bounded pep8/pyflakes first, then let flake8 install -deps = hacking>=0.8.0,<0.9 commands = flake8 flake8 --filename=ceilometer-* bin @@ -39,7 +37,8 @@ commands = python setup.py build_sphinx commands = {posargs} [flake8] -ignore = None +# TODO fix H302 +ignore = H302 builtins = _ exclude=.venv,.git,.tox,dist,doc,./ceilometer/openstack/common,*lib/python*,*egg,tools,nova_tests,build show-source = True