blob: 31e305b0d4ad3ea70791f1037d6d78bad4900ad8 [file] [log] [blame]
Kiall Mac Innes25fb29e2016-04-07 08:07:04 +01001[tox]
2minversion = 1.6
3envlist = py34,py27,flake8
4skipsdist = True
5
6[testenv]
7usedevelop = True
8install_command = pip install {opts} {packages}
9deps = -r{toxinidir}/requirements.txt
10 -r{toxinidir}/test-requirements.txt
11setenv =
12 PYTHONDONTWRITEBYTECODE=1
13whitelist_externals = sh
14 find
15 rm
16commands =
17 find . -type f -name "*.pyc" -delete
18 sh tools/pretty_tox.sh '{posargs}'
19passenv = http_proxy
20 HTTP_PROXY
21 https_proxy
22 HTTPS_PROXY
23 no_proxy
24 NO_PROXY
25 OS_DEBUG
26 OS_LOG_CAPTURE
27 OS_STDERR_CAPTURE
28 OS_STDOUT_CAPTURE
29
30[testenv:pep8]
31basepython = python2.7
32commands = sh tools/pretty_flake8.sh
33
34[testenv:bashate]
35deps = bashate
36whitelist_externals = bash
37commands = bash -c "find {toxinidir}/devstack \
38 -not \( -type d -name .?\* -prune \) \
39 -not \( -type d -name doc -prune \) \
40 -type f \
41 -not -name \*~ \
42 -not -name \*.md \
43 \( \
44 -name \*.sh -or \
45 -name \*rc -or \
46 -name functions\* -or \
47 -wholename \*/lib/\* \
48 \) \
49 -print0 | xargs -0 bashate -v"
50
51[testenv:pip-check-reqs]
52# do not install test-requirements as that will pollute the virtualenv for
53# determining missing packages
54# this also means that pip-missing-reqs must be installed separately, outside
55# of the requirements.txt files
56deps = pip-check-reqs
57 -r{toxinidir}/requirements.txt
58commands=pip-missing-reqs -d --ignore-file=designate/tests/* designate
59
60[testenv:venv]
61commands = {posargs}
62
63[flake8]
64# ignored flake8 codes:
65# H302 import only modules
66# H306 imports not in alphabetical order
67# H402 one line docstring needs punctuation
68# H404 multi line docstring should start with a summary
69# H405 multi line docstring summary not separated with an empty line
70# H904 Wrap long lines in parentheses instead of a backslash
71# E126 continuation line over-indented for hanging indent
72# E128 continuation line under-indented for visual indent
73
74ignore = H302,H306,H402,H404,H405,H904,E126,E128
75exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*openstack/deprecated*,*lib/python*,*egg,build,tools,.ropeproject
Kiall Mac Innesa17f2332016-08-25 13:34:42 +010076
77
78[hacking]
79local-check-factory = designate_tempest_plugin.hacking.checks.factory
80