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
|
[tox]
envlist = py37, py38, py39, py310, py311, py312, check-manifest, docs, flake8, mypy
[testenv]
sitepackages = true
deps = .[test]
commands =
python -m pytest \
--basetemp={envtmpdir} \
--cov=mopidy --cov-report=term-missing \
{posargs}
[testenv:check-manifest]
deps = .[lint]
commands = python -m check_manifest
[testenv:docs]
deps = .[docs]
changedir = docs
commands = python -m sphinx -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:flake8]
deps = .[lint]
commands = python -m flake8 --show-source --statistics
[testenv:linkcheck]
deps = .[docs]
changedir = docs
commands = python -m sphinx -b linkcheck -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:mypy]
deps =
.[lint]
tornado >= 6 # First version to ship type information
commands = python -m mypy mopidy
[testenv:ci]
deps =
{[testenv]deps}
{[testenv:check-manifest]deps}
{[testenv:flake8]deps}
{[testenv:mypy]deps}
commands =
{[testenv]commands}
{[testenv:check-manifest]commands}
{[testenv:flake8]commands}
{[testenv:mypy]commands}
|