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.

82 lines
2.1 KiB

minversion = 2.0
envlist = py39,py38,pep8,pylint,docs
skipsdist = True
basepython = python3
usedevelop = True
deps =
passenv =
http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
install_command = pip install {opts} {packages}
setenv =
OS_TEST_PATH = ./freezer_api/tests/unit
PYTHON=coverage run --source freezer_api --parallel-mode
commands =
find . -type f -name "*.py[c|o]" -delete
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report -m
rm -f .coverage
rm -rf .testrepository
whitelist_externals =
python_files = test_*.py
norecursedirs = .tox .venv
basepython = python3.8
basepython = python3.9
commands = {posargs}
commands = pylint --rcfile .pylintrc freezer_api
commands = flake8 freezer_api
# Ignored hackings:
# H202 -> assertRaises(Exception, ...) too broad
# H401 -> Docstrings should not start with a space
# H404 -> Multi line docstrings should start without a leading new line.
# H405 -> Multi line docstrings should start with a one line summary followed by an empty line.
ignore = H202,H401,H404,H405
show-source = True
exclude = .venv,.tox,dist,doc,*egg,specs,build,*/source/
commands =
rm -rf api-ref/build
# sphinx-build -W --keep-going -b html api-ref/source api-ref/build/html
sphinx-build -W --keep-going -b html doc/source doc/build/html
whitelist_externals = rm
commands =
rm -rf api-ref/build
sphinx-build -W -a -E --keep-going -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
commands = sphinx-build -W -a -E -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
commands = oslopolicy-sample-generator --config-file etc/freezer/freezer-policy-generator.conf