1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
[tox]
minversion = 3.1
envlist = py38,py39,py310,py311,py312,pep8,docs-gnocchi-web
skipsdist = True
[testenv]
usedevelop = True
setenv =
VIRTUAL_ENV={envdir}
GNOCCHI_CLIENT_EXEC_DIR={envdir}/bin
passenv = GNOCCHI_*
deps = .[test,openstack]
git+https://github.com/gnocchixyz/gnocchi.git\#egg=gnocchi[postgresql,file]
pifpaf[gnocchi]
# TODO(tobias-urdin): Skip benchmark tests since they just hang right now.
commands = pifpaf run gnocchi -- pytest -k 'not test_benchmark_' {posargs:gnocchiclient/tests}
[testenv:build]
deps = build
commands = python -m build
[testenv:pep8]
deps = flake8
flake8-import-order
flake8-blind-except
flake8-builtins
flake8-docstrings
flake8-rst-docstrings
flake8-logging-format
doc8>=0.8.0
commands = flake8
doc8 --ignore-path doc/source/gnocchi.rst --ignore-path-errors doc/source/shell.rst;D000 doc/source
[testenv:venv]
deps = .[test,doc]
commands = {posargs}
[testenv:cover]
deps = {[testenv]deps}
pytest-cov
# TODO(tobias-urdin): Skip benchmark tests since they just hang right now.
commands = pifpaf run gnocchi -- pytest -k 'not test_benchmark_' --cov=gnocchiclient {posargs:gnocchiclient/tests}
[testenv:docs-gnocchi-web]
deps = .[test,doc]
commands =
sphinx-build --keep-going -b html -j auto doc/source doc/build/html
[flake8]
show-source = True
ignore = D100,D101,D102,D103,D104,D105,D107,A002,A003,A005,W504
exclude=.git,.tox,dist,doc,*egg,build
enable-extensions=G
application-import-names = gnocchiclient
[pytest]
addopts = --verbose
norecursedirs = .tox
|