Kiall Mac Innes | 25fb29e | 2016-04-07 08:07:04 +0100 | [diff] [blame] | 1 | [tox] |
| 2 | minversion = 1.6 |
| 3 | envlist = py34,py27,flake8 |
| 4 | skipsdist = True |
| 5 | |
| 6 | [testenv] |
| 7 | usedevelop = True |
| 8 | install_command = pip install {opts} {packages} |
| 9 | deps = -r{toxinidir}/requirements.txt |
| 10 | -r{toxinidir}/test-requirements.txt |
| 11 | setenv = |
| 12 | PYTHONDONTWRITEBYTECODE=1 |
| 13 | whitelist_externals = sh |
| 14 | find |
| 15 | rm |
| 16 | commands = |
| 17 | find . -type f -name "*.pyc" -delete |
| 18 | sh tools/pretty_tox.sh '{posargs}' |
| 19 | passenv = 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] |
| 31 | basepython = python2.7 |
| 32 | commands = sh tools/pretty_flake8.sh |
| 33 | |
| 34 | [testenv:bashate] |
| 35 | deps = bashate |
| 36 | whitelist_externals = bash |
| 37 | commands = 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 |
| 56 | deps = pip-check-reqs |
| 57 | -r{toxinidir}/requirements.txt |
| 58 | commands=pip-missing-reqs -d --ignore-file=designate/tests/* designate |
| 59 | |
| 60 | [testenv:venv] |
| 61 | commands = {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 | |
| 74 | ignore = H302,H306,H402,H404,H405,H904,E126,E128 |
| 75 | exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*openstack/deprecated*,*lib/python*,*egg,build,tools,.ropeproject |
Kiall Mac Innes | a17f233 | 2016-08-25 13:34:42 +0100 | [diff] [blame^] | 76 | |
| 77 | |
| 78 | [hacking] |
| 79 | local-check-factory = designate_tempest_plugin.hacking.checks.factory |
| 80 | |