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.

77 lines
2.0 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

minversion = 3.1.1
envlist = py3,pep8,pylint,docs
skipsdist = True
ignore_basepython_conflict = True
basepython = python3
usedevelop = True
deps =
install_command = pip install {opts} {packages}
setenv =
PYTHON=coverage run --source freezerclient --parallel-mode
OS_TEST_PATH = ./freezerclient/tests/unit
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
commands = {posargs}
basepython = python3.8
basepython = python3.9
deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -b html doc/source doc/build/html
commands = flake8 freezerclient
commands = pylint --rcfile .pylintrc freezerclient
# Ignored hackings:
# H104 -> empty file, only comments
# H202 -> assertRaises(Exception, ...) too broad
# 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,H404,H405
# H106: Dont put vim configuration in source files
# H203: Use assertIs(Not)None to check for None
show-source = True
exclude = .venv,.tox,dist,doc,*egg,releasenotes
deps =
commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html