Codebase list python-castellan / d78940ce-c0ea-4312-986d-d93947def7b8/main tox.ini

Tree @d78940ce-c0ea-4312-986d-d93947def7b8/main (Download .tar.gz)

tox.ini @d78940ce-c0ea-4312-986d-d93947def7b8/mainraw · history · blame

minversion = 3.18.0
envlist = py3,pep8
ignore_basepython_conflict = True
skipsdist = True

usedevelop = True
basepython = python3
setenv =
deps =
commands = stestr run --slowest {posargs}

commands =
  pre-commit run -a
  bandit -r castellan -x tests -s B105,B106,B107,B607

# 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

commands = {posargs}

commands = oslo_debug_helper {posargs}

setenv =
    PYTHON=coverage run --source castellan --parallel-mode
commands =
    coverage erase
    coverage combine
    coverage html -d cover
    coverage xml -o cover/coverage.xml
    coverage report --show-missing

# This environment is called from CI scripts to test and publish
# the main docs to
description = Build main documentation
deps = -r{toxinidir}/doc/requirements.txt
    rm -rf doc/build doc/build/doctrees
    sphinx-build -W -b html -d doc/build/doctrees doc/source doc/build/html
allowlist_externals = rm

deps = {[testenv:docs]deps}
envdir = {toxworkdir}/docs
allowlist_externals =
commands =
  rm -rf doc/build/pdf
  sphinx-build -W -b latex doc/source doc/build/pdf
  make -C doc/build/pdf

deps = {[testenv:docs]deps}
envdir = {toxworkdir}/docs
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html

usedevelop = True
setenv =
commands = stestr run --slowest {posargs}

passenv = HOME
usedevelop = True
setenv =
commands =
    {toxinidir}/tools/ pifpaf -e VAULT_TEST run vault -- stestr run --slowest {posargs}

commands =
    oslo-config-generator --config-file=etc/castellan/functional-config-generator.conf
    oslo-config-generator --config-file=etc/castellan/sample-config-generator.conf

# [H106] Don't put vim configuration in source files.
# [H203] Use assertIs(Not)None to check for None.
show-source = True
enable-extensions = H106,H203

import_exceptions = castellan.i18n

# 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