2fe2bf5e26
Change-Id: I7973d8e36c2aa9e173522a01076ce73228ba96a9
57 lines
1.1 KiB
INI
57 lines
1.1 KiB
INI
[tox]
|
|
envlist = pep8, docs
|
|
minversion = 2.3.1
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
LANGUAGE=en_US
|
|
LC_ALL=en_US.utf-8
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
passenv = http_proxy https_proxy HTTP_PROXY HTTPS_PROXY no_proxy NO_PROXY PBR_VERSION
|
|
whitelist_externals =
|
|
find
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
[testenv:fmt]
|
|
basepython = python3
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
yapf -ir {toxinidir}/spyglass
|
|
|
|
[testenv:pep8]
|
|
basepython = python3
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
bash -c {toxinidir}/tools/gate/whitespace-linter.sh
|
|
yapf -dr {toxinidir}/spyglass {toxinidir}/setup.py
|
|
flake8 {toxinidir}/spyglass
|
|
bandit -r spyglass -n 5
|
|
whitelist_externals =
|
|
bash
|
|
|
|
[testenv:bandit]
|
|
deps =
|
|
bandit
|
|
commands = bandit -r spyglass -n 5
|
|
|
|
[flake8]
|
|
ignore = W503
|
|
|
|
[testenv:docs]
|
|
basepython = python3
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/doc/requirements.txt
|
|
commands =
|
|
rm -rf doc/build
|
|
sphinx-build -b html doc/source doc/build/html -n -W -v
|
|
whitelist_externals = rm
|