-
Notifications
You must be signed in to change notification settings - Fork 8
/
tox.ini
53 lines (47 loc) · 872 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]
requires =
tox>=4.2
env_list =
type
format
report
py3{12, 11, 10, 9, 8}
[testenv]
skip_install = true
pass_env =
COVERAGE_FILE
commands_pre =
poetry install --only main,tests
commands =
poetry run coverage run -m pytest {posargs:tests}
allowlist_externals =
poetry
[testenv:type]
commands_pre =
poetry install --only main,types
commands =
poetry run mypy {posargs:descope tests}
[testenv:format]
commands_pre =
poetry install --only format
commands =
poetry run black .
[testenv:report]
commands =
poetry run coverage report
depends =
py3{12, 11, 10, 9, 8}
[testenv:py37]
deps =
pytest
commands_pre =
poetry install --only main,tests
commands =
poetry run pytest {posargs:tests}
[gh]
python =
3.12 = py312, type, format
3.11 = py311
3.10 = py310
3.9 = py39
3.8 = py38