Codebase list python-castellan / a288335 tox.ini
a288335

Tree @a288335 (Download .tar.gz)

tox.ini @a288335

93eb3a9
0450c73
9a34dc9
93eb3a9
 
 
 
c673571
93eb3a9
 
a6c9df4
c673571
eae06cf
c673571
93eb3a9
22a5b8b
93eb3a9
837fc4c
 
 
93eb3a9
b9f6436
dd6ad90
 
 
 
 
b9f6436
dd6ad90
 
 
 
 
 
 
 
 
 
93eb3a9
 
b9f6436
93eb3a9
 
2f47c5f
b9f6436
2f47c5f
 
93eb3a9
b9f6436
22a5b8b
 
2ba9b07
27c6f63
22a5b8b
 
 
 
93eb3a9
 
b9f6436
93eb3a9
 
5d946f0
b9f6436
5d946f0
 
5732359
 
 
 
 
 
22a5b8b
5732359
a972da3
 
 
 
 
 
 
 
22a5b8b
a972da3
5732359
b9f6436
5732359
 
d768fbc
5732359
93eb3a9
3945e3e
 
93eb3a9
fccb2fe
3945e3e
fccb2fe
 
 
18068e1
 
b9f6436
18068e1
 
 
 
a288335
 
 
 
 
 
 
 
 
 
 
 
[tox]
minversion = 2.0
envlist = py36,py27,pep8
skipsdist = True

[testenv]
usedevelop = True
install_command = pip install {opts} {packages}
setenv =
   VIRTUAL_ENV={envdir}
   OS_TEST_PATH=./castellan/tests/unit
deps =
       -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/stein}
       -r{toxinidir}/requirements.txt
       -r{toxinidir}/test-requirements.txt
commands = stestr run --slowest {posargs}

[testenv:py27]
basepython = python2.7

[testenv:pep8]
basepython = python3
commands =
  flake8
  bandit -r castellan -x tests -s B105,B106,B107,B607

[testenv:bandit]
basepython = python3
# This command runs the bandit security linter against the castellan
# codebase minus the tests directory. Some tests are being excluded to
# reduce the number of positives before a team inspection, and to ensure a
# passing gate job for initial addition. The excluded tests are:
# B105-B107: hardcoded password checks - likely to generate false positives
#            in a gate environment
# B607: start process with a partial path - this should be a project level
#       decision
commands =
  bandit -r castellan -x tests -s B105,B106,B107,B607

[testenv:venv]
basepython = python3
commands = {posargs}

[testenv:debug]
basepython = python3
commands = oslo_debug_helper {posargs}

[testenv:cover]
basepython = python3
setenv =
    PYTHON=coverage run --source $project --parallel-mode
commands =
    stestr run {posargs}
    coverage combine
    coverage html -d cover
    coverage xml -o cover/coverage.xml
    coverage report

[testenv:docs]
basepython = python3
commands = python setup.py build_sphinx

[testenv:releasenotes]
basepython = python3
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html

[testenv:functional]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
    VIRTUAL_ENV={envdir}
    OS_TEST_PATH=./castellan/tests/functional
commands = stestr run --slowest {posargs}

[testenv:functional-vault]
passenv = HOME
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
    VIRTUAL_ENV={envdir}
    OS_TEST_PATH=./castellan/tests/functional
commands =
    {toxinidir}/tools/setup-vault-env.sh pifpaf -e VAULT_TEST run vault -- stestr run --slowest {posargs}

[testenv:genconfig]
basepython = python3
commands =
    oslo-config-generator --config-file=etc/castellan/functional-config-generator.conf
    oslo-config-generator --config-file=etc/castellan/sample-config-generator.conf

[flake8]
# [H106] Don't put vim configuration in source files.
# [H203] Use assertIs(Not)None to check for None.
show-source = True
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
enable-extensions = H106,H203

[hacking]
import_exceptions = castellan.i18n

[testenv:lower-constraints]
basepython = python3
deps =
  -c{toxinidir}/lower-constraints.txt
  -r{toxinidir}/test-requirements.txt
  -r{toxinidir}/requirements.txt

[testenv:bindep]
basepython = python3
# Do not install any requirements. We want this to be fast and work even if
# system dependencies are missing, since it's used to tell you what system
# dependencies are missing! This also means that bindep must be installed
# separately, outside of the requirements files, and develop mode disabled
# explicitly to avoid unnecessarily installing the checked-out repo too (this
# further relies on "tox.skipsdist = True" above).
deps = bindep
commands = bindep test
usedevelop = False