-
Notifications
You must be signed in to change notification settings - Fork 686
/
tox.ini
44 lines (37 loc) · 980 Bytes
/
tox.ini
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
[tox]
envlist = py311, py312, docs, pyright, ruff-lint, ruff-format
[testenv]
deps = .[test]
commands =
python -m pytest \
--basetemp={envtmpdir} \
--cov=mopidy --cov-report=term-missing \
{posargs}
[testenv:docs]
deps = .[docs]
changedir = docs
commands = python -m sphinx -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:linkcheck]
deps = .[docs]
changedir = docs
commands = python -m sphinx -b linkcheck -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:pyright]
deps = .[typing]
commands = python -m pyright src
[testenv:ruff-lint]
deps = .[lint]
commands = python -m ruff check .
[testenv:ruff-format]
deps = .[lint]
commands = python -m ruff format --check .
[testenv:ci]
deps =
{[testenv]deps}
{[testenv:pyright]deps}
{[testenv:ruff-lint]deps}
{[testenv:ruff-format]deps}
commands =
{[testenv]commands}
{[testenv:pyright]commands}
{[testenv:ruff-lint]commands}
{[testenv:ruff-format]commands}