promenade/tox.ini
Mark Burnett 0e5009277a Fix broken validatedesign endpoint
This endpoint did not correctly return a response body.

Change-Id: Iec23083402d92069ab34698f31aeee4dce035aa6
2018-07-19 13:29:18 -05:00

67 lines
1.4 KiB
INI

[tox]
envlist = pep8,py35,bandit,docs
[testenv]
basepython=python3
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
[testenv:py35]
setenv =
PYTHONWARNING=all
deps = -r{toxinidir}/requirements-frozen.txt
-r{toxinidir}/test-requirements.txt
commands =
pytest {posargs}
[testenv:py36]
setenv =
PYTHONWARNING=all
deps = -r{toxinidir}/requirements-frozen.txt
-r{toxinidir}/test-requirements.txt
commands =
pytest {posargs}
[testenv:bandit]
deps = bandit==1.4.0
commands =
bandit -r promenade
[testenv:docs]
whitelist_externals = rm
deps =
sphinx>=1.6.2
sphinx_rtd_theme==0.2.4
-r{toxinidir}/requirements-frozen.txt
-r{toxinidir}/test-requirements.txt
commands =
rm -rf doc/build
sphinx-build -b html doc/source doc/build
[testenv:fmt]
deps = yapf==0.20.0
commands =
yapf -ir {toxinidir}/promenade {toxinidir}/tests {toxinidir}/tools/image_tags.py
[testenv:freeze]
deps = -r{toxinidir}/requirements-direct.txt
recreate = True
whitelist_externals = sh
grep
commands=
sh -c "pip freeze | grep -vE '^(promenade)|(pkg-resources)' > {toxinidir}/requirements-frozen.txt"
[testenv:gate-lint]
deps =
jsonschema==2.6.0
whitelist_externals = sh
commands =
{toxinidir}/tools/lint_gate.sh
[testenv:pep8]
deps =
yapf==0.20.0
flake8==3.5.0
commands =
yapf -rd {toxinidir}/promenade {toxinidir}/tests {toxinidir}/tools/image_tags.py
flake8 {toxinidir}/promenade