-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
53 lines (47 loc) · 949 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
45
46
47
48
49
50
51
52
53
[tox]
envlist = py{39,310,311,312}, format, docs, lint, quick
isolated_build = True
[testenv]
deps =
pytest
commands = pytest -m "not (slow or gui)"
passenv =
XDG_RUNTIME_DIR
DISPLAY
XAUTHORITY
[testenv:quick]
basepython = python3.9
commands =
pytest -m "not (slow or gui)"
[testenv:format]
deps =
ruff
commands =
; sort imports
ruff check --select I --fix .
ruff format
[testenv:docs]
deps =
sphinx
sphinx-rtd-theme
readme-patcher
commands =
readme-patcher -v
sphinx-build docs docs/_build
; musescore-manager --print-completion zsh > autocomplete.zsh
; musescore-manager --print-completion bash > autocomplete.bash
; musescore-manager --print-completion tcsh > autocomplete.tcsh
[testenv:lint]
deps =
mypy
ruff
pytest
commands =
ruff check
mypy mscxyz tests
[gh-actions]
python =
3.9: py39
3.10: py310, format, docs, lint
3.11: py311
3.12: py312