eb0deeb9e5
Added secret encryption/decryption to pegleg cli. Change-Id: I95b993748d99fc4398eee1d1c59e74f382497f74
55 lines
1.2 KiB
INI
55 lines
1.2 KiB
INI
[tox]
|
|
envlist = py35, py36, pep8, docs
|
|
minversion = 2.3.1
|
|
# Allows docs to be built without setup.py having to exist. Requires that
|
|
# usedevelop be False as well (which it is by default).
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
LANGUAGE=en_US
|
|
LC_ALL=en_US.utf-8
|
|
passenv = http_proxy https_proxy HTTP_PROXY HTTPS_PROXY
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
basepython=python3
|
|
whitelist_externals =
|
|
find
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
{toxinidir}/tools/gate/run-unit-tests.sh '{posargs}'
|
|
|
|
[testenv:fmt]
|
|
basepython=python3
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
yapf --style=pep8 -ir {toxinidir}/pegleg {toxinidir}/tests
|
|
|
|
[testenv:pep8]
|
|
basepython=python3
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
flake8 {toxinidir}/pegleg
|
|
bandit -r pegleg -n 5
|
|
|
|
[testenv:docs]
|
|
basepython = python3
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/doc/requirements.txt
|
|
commands =
|
|
{toxinidir}/tools/gate/build-docs.sh
|
|
|
|
[testenv:bandit]
|
|
basepython=python3
|
|
commands = bandit -r pegleg -n 5
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
ignore = E125,E251,W503
|