Monasca Database Persister
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

121 lines
3.2 KiB

envlist = py38,pep8
minversion = 2.1
skipsdist = True
setenv =
passenv = http_proxy
usedevelop = True
whitelist_externals = bash
install_command = pip install {opts} {packages}
deps =
commands =
find {toxinidir} -type f -name "*.py[c|o]" -delete
rm -Rf .testrepository/times.dbm
stestr run {posargs}
basepython = python3
setenv =
PYTHON=coverage run --source monasca_persister --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report
basepython = python3
commands = oslo_debug_helper -t monasca_persister/tests {posargs}
basepython = python3
deps =
commands =
basepython = python3
description = Generates sample configuration file for monasca-persister
whitelist_externals = bash
commands =
oslo-config-generator --config-file=config-generator/persister.conf
basepython = python3
commands = {posargs}
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.
deps = bindep
commands = bindep test
basepython = python3
commands =
flake8 monasca_persister
max-line-length = 100
# TODO: ignored checks should be enabled in the future
# H405 multi line docstring summary not separated with an empty line
ignore = F821,H405,H306,E302
commands =
# B303 cassandra metrics repository uses SHA1 for metric_id
bandit -r monasca_persister -n5 -s B303 -x monasca_persister/tests
extension =
def factory(register):
M001 = checks:no_mutable_default_args
M002 = checks:no_xrange
M003 = checks:validate_assertTrue
M004 = checks:validate_assertIsNone
M005 = checks:no_log_warn_check
M006 = checks:validate_assertIsNotNone
M007 = checks:assert_raisesRegexp
paths = ./monasca_persister/hacking
basepython = python3
deps =
deps = -c{env:TOX_CONSTRAINTS_FILE:}
basepython = python3
description = Called from CI script to test and publish the Release Notes
commands =
rm -rf releasenotes/build
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html \
releasenotes/source releasenotes/build/html