summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2013-05-17 12:54:12 -0700
committerMonty Taylor <mordred@inaugust.com>2013-05-17 12:54:12 -0700
commita333be8fe4ec0abc49e85d0c689b8ffba2a473eb (patch)
treeea6a8037626de002ce60e8e5a82f1053bdb50a40 /tox.ini
parent186c49409c841bd2bba50ea8629ec214a7fb9627 (diff)
downloadnova-a333be8fe4ec0abc49e85d0c689b8ffba2a473eb.tar.gz
Switch to flake8+hacking.
Remove a bunch of local custom scripts. Replace with configurable external tools. Use local hacking checks for nova specifics. Change-Id: I75a01375ba0ec36d2ff05abc47abe0a3f225eda5
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini19
1 files changed, 12 insertions, 7 deletions
diff --git a/tox.ini b/tox.ini
index ca135209bb..4d6f3b0a7e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -18,18 +18,15 @@ sitepackages = True
downloadcache = ~/cache/pip
[testenv:pep8]
-commands = bash tools/run_pep8.sh
+sitepackages = False
+commands =
+ flake8
+ flake8 --filename=nova* bin
[testenv:pylint]
setenv = VIRTUAL_ENV={envdir}
-deps = -r{toxinidir}/tools/pip-requires
- pylint==0.26.0
commands = bash tools/lintstack.sh
-[testenv:pyflakes]
-deps = pyflakes
-commands = python tools/flakes.py nova
-
[testenv:cover]
# Also do not run test_coverage_ext tests while gathering coverage as those
# tests conflict with coverage.
@@ -41,3 +38,11 @@ commands =
[testenv:venv]
commands = {posargs}
+
+[flake8]
+ignore = E12,E711,E721,E712,H302,H303,H403,H404,F
+builtins = _
+exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,plugins,tools
+
+[hacking]
+local-check-factory = nova.hacking.checks.factory