Kiall Mac Innes | 25fb29e | 2016-04-07 08:07:04 +0100 | [diff] [blame] | 1 | [tox] |
Tony Breeds | de55ca2 | 2016-12-20 15:42:54 +1100 | [diff] [blame] | 2 | minversion = 2.0 |
sandriichenko | 2b0eaa6 | 2018-02-23 14:45:13 +0200 | [diff] [blame] | 3 | envlist = pep8 |
Kiall Mac Innes | 25fb29e | 2016-04-07 08:07:04 +0100 | [diff] [blame] | 4 | skipsdist = True |
| 5 | |
| 6 | [testenv] |
| 7 | usedevelop = True |
Tony Breeds | de55ca2 | 2016-12-20 15:42:54 +1100 | [diff] [blame] | 8 | install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} |
Kiall Mac Innes | 25fb29e | 2016-04-07 08:07:04 +0100 | [diff] [blame] | 9 | deps = -r{toxinidir}/requirements.txt |
| 10 | -r{toxinidir}/test-requirements.txt |
| 11 | setenv = |
Tony Breeds | de55ca2 | 2016-12-20 15:42:54 +1100 | [diff] [blame] | 12 | VIRTUAL_ENV={envdir} |
| 13 | BRANCH_NAME=master |
| 14 | CLIENT_NAME=designate-tempest-plugin |
Kiall Mac Innes | 25fb29e | 2016-04-07 08:07:04 +0100 | [diff] [blame] | 15 | PYTHONDONTWRITEBYTECODE=1 |
| 16 | whitelist_externals = sh |
| 17 | find |
| 18 | rm |
| 19 | commands = |
| 20 | find . -type f -name "*.pyc" -delete |
| 21 | sh tools/pretty_tox.sh '{posargs}' |
| 22 | passenv = http_proxy |
| 23 | HTTP_PROXY |
| 24 | https_proxy |
| 25 | HTTPS_PROXY |
| 26 | no_proxy |
| 27 | NO_PROXY |
| 28 | OS_DEBUG |
| 29 | OS_LOG_CAPTURE |
| 30 | OS_STDERR_CAPTURE |
| 31 | OS_STDOUT_CAPTURE |
| 32 | |
| 33 | [testenv:pep8] |
| 34 | basepython = python2.7 |
| 35 | commands = sh tools/pretty_flake8.sh |
| 36 | |
Graham Hayes | c392cf9 | 2017-02-23 16:06:04 -0500 | [diff] [blame] | 37 | |
| 38 | [testenv:docs] |
| 39 | commands = rm -rf doc/build |
| 40 | sphinx-build -E -W -b html doc/source doc/build/html |
| 41 | |
Kiall Mac Innes | 25fb29e | 2016-04-07 08:07:04 +0100 | [diff] [blame] | 42 | [testenv:bashate] |
| 43 | deps = bashate |
| 44 | whitelist_externals = bash |
| 45 | commands = bash -c "find {toxinidir}/devstack \ |
| 46 | -not \( -type d -name .?\* -prune \) \ |
| 47 | -not \( -type d -name doc -prune \) \ |
| 48 | -type f \ |
| 49 | -not -name \*~ \ |
| 50 | -not -name \*.md \ |
| 51 | \( \ |
| 52 | -name \*.sh -or \ |
| 53 | -name \*rc -or \ |
| 54 | -name functions\* -or \ |
| 55 | -wholename \*/lib/\* \ |
| 56 | \) \ |
| 57 | -print0 | xargs -0 bashate -v" |
| 58 | |
| 59 | [testenv:pip-check-reqs] |
| 60 | # do not install test-requirements as that will pollute the virtualenv for |
| 61 | # determining missing packages |
| 62 | # this also means that pip-missing-reqs must be installed separately, outside |
| 63 | # of the requirements.txt files |
| 64 | deps = pip-check-reqs |
| 65 | -r{toxinidir}/requirements.txt |
| 66 | commands=pip-missing-reqs -d --ignore-file=designate/tests/* designate |
| 67 | |
| 68 | [testenv:venv] |
| 69 | commands = {posargs} |
| 70 | |
| 71 | [flake8] |
| 72 | # ignored flake8 codes: |
| 73 | # H302 import only modules |
| 74 | # H306 imports not in alphabetical order |
| 75 | # H402 one line docstring needs punctuation |
| 76 | # H404 multi line docstring should start with a summary |
| 77 | # H405 multi line docstring summary not separated with an empty line |
| 78 | # H904 Wrap long lines in parentheses instead of a backslash |
| 79 | # E126 continuation line over-indented for hanging indent |
| 80 | # E128 continuation line under-indented for visual indent |
| 81 | |
| 82 | ignore = H302,H306,H402,H404,H405,H904,E126,E128 |
| 83 | 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] | 84 | |
| 85 | |
| 86 | [hacking] |
| 87 | local-check-factory = designate_tempest_plugin.hacking.checks.factory |
| 88 | |