2019-05-12 15:40:45 +00:00
|
|
|
[tox]
|
|
|
|
skipsdist = True
|
2023-10-06 01:43:18 +00:00
|
|
|
envlist = lint,docs,typing,py38,py39,py310,py311,py312,pypy39, pypy310
|
2019-05-12 15:40:45 +00:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
2021-06-09 05:37:10 +00:00
|
|
|
skip_missing_interpreters = True
|
2021-03-26 02:29:45 +00:00
|
|
|
|
2021-04-16 13:47:12 +00:00
|
|
|
[gh-actions]
|
|
|
|
python =
|
2021-04-26 00:03:52 +00:00
|
|
|
3.8: py38
|
2022-04-22 14:51:13 +00:00
|
|
|
3.9: py39
|
|
|
|
3.10: py310, lint, docs, typing
|
2022-10-26 18:40:37 +00:00
|
|
|
3.11: py311
|
2023-10-06 01:43:18 +00:00
|
|
|
3.12: py312
|
2022-10-26 18:40:37 +00:00
|
|
|
pypy-3.9: pypy39
|
2023-10-06 01:43:18 +00:00
|
|
|
pypy-3.10: pypy310
|
2019-05-12 15:40:45 +00:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
setenv =
|
|
|
|
PYTHONPATH = {toxinidir}/src
|
|
|
|
deps =
|
|
|
|
-r{toxinidir}/requirements.txt
|
2020-05-15 03:04:52 +00:00
|
|
|
# libvirt-python==5.5.0
|
2019-08-26 11:11:58 +00:00
|
|
|
|
2019-05-12 15:40:45 +00:00
|
|
|
commands =
|
2022-01-29 03:38:46 +00:00
|
|
|
python -m unittest discover src --verbose
|
2019-05-12 15:40:45 +00:00
|
|
|
|
2021-06-09 05:37:10 +00:00
|
|
|
|
2019-05-12 15:40:45 +00:00
|
|
|
[testenv:lint]
|
|
|
|
deps =
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/requirements-dev.txt
|
2021-06-09 05:37:10 +00:00
|
|
|
allowlist_externals =
|
|
|
|
yamllint
|
2019-05-12 15:40:45 +00:00
|
|
|
commands =
|
2023-01-07 14:09:09 +00:00
|
|
|
ruff {toxinidir}/src
|
2022-12-15 03:46:15 +00:00
|
|
|
- yamllint {toxinidir}
|
|
|
|
- pylint {toxinidir}/src
|
2022-04-22 14:51:13 +00:00
|
|
|
basepython = python3.10
|
2019-05-12 15:40:45 +00:00
|
|
|
|
2021-06-09 05:37:10 +00:00
|
|
|
|
2019-05-12 15:40:45 +00:00
|
|
|
[testenv:docs]
|
|
|
|
setenv =
|
|
|
|
PYTHONPATH = {toxinidir}/src
|
|
|
|
changedir = docs
|
|
|
|
deps =
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/requirements-dev.txt
|
|
|
|
commands =
|
|
|
|
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|
2022-04-22 14:51:13 +00:00
|
|
|
basepython = python3.10
|
2021-03-26 02:29:45 +00:00
|
|
|
|
2021-06-09 05:37:10 +00:00
|
|
|
|
|
|
|
[testenv:typing]
|
|
|
|
description = run static type checkers
|
2021-03-26 02:29:45 +00:00
|
|
|
|
|
|
|
deps =
|
2021-04-03 15:53:44 +00:00
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/requirements-dev.txt
|
2021-03-26 02:29:45 +00:00
|
|
|
|
|
|
|
commands =
|
|
|
|
mypy \
|
|
|
|
--cache-dir="{toxworkdir}/mypy_cache" \
|
2021-10-17 15:30:18 +00:00
|
|
|
--config-file="{toxinidir}/pyproject.toml" \
|
2021-03-26 02:29:45 +00:00
|
|
|
{tty:--pretty:} \
|
|
|
|
{posargs:src}
|
2023-01-07 14:09:09 +00:00
|
|
|
- mypyc \
|
|
|
|
--cache-dir="{toxworkdir}/mypyc_cache" \
|
|
|
|
--config-file="{toxinidir}/pyproject.toml" \
|
|
|
|
{tty:--pretty:} \
|
|
|
|
{posargs:src}
|
2021-04-26 00:03:52 +00:00
|
|
|
- pytype --keep-going --jobs auto
|
2021-04-16 13:47:12 +00:00
|
|
|
- pyre --noninteractive analyze
|
2023-01-07 14:09:09 +00:00
|
|
|
- pyright {posargs:src}
|
2022-04-22 14:51:13 +00:00
|
|
|
basepython = python3.10
|
2023-01-03 08:59:24 +00:00
|
|
|
|
|
|
|
[testenv:coverage-report]
|
|
|
|
deps = coverage
|
|
|
|
skip_install = true
|
|
|
|
commands =
|
|
|
|
coverage combine
|
|
|
|
coverage report
|
2023-01-07 14:09:09 +00:00
|
|
|
|
|
|
|
[coverage:run]
|
|
|
|
relative_files = True
|
|
|
|
source = src/
|
|
|
|
branch = True
|