-
-
Notifications
You must be signed in to change notification settings - Fork 65
/
tox.ini
60 lines (48 loc) · 1.18 KB
/
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
54
55
56
57
58
59
60
[tox]
envlist = lint,{pypy3,py38,py310,py311,py312}-mypy,coverage-clean,{pypy3,py38,py310,py311,py312}-{extras,noextras},coverage-report,docs
isolated_build = true
[testenv]
deps =
extras: graphviz>=0.4.9
extras: Twisted>=16.2.0
mypy: mypy
mypy: graphviz>=0.4.9
mypy: Twisted>=16.2.0
coverage
pytest
commands =
{extras,noextras}: coverage run --parallel --source src -m pytest -s -rfEsx src/automat/_test
mypy: mypy {posargs:src/automat}
depends =
coverage-clean
[testenv:coverage-clean]
deps = coverage
skip_install = true
commands = coverage erase
depends =
[testenv:coverage-report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage xml
coverage report -m
depends =
{pypy3,py38,py310,py311}-{extras,noextras}
[testenv:benchmark]
deps = pytest-benchmark
commands = pytest --benchmark-only benchmark/
[testenv:lint]
deps = black
commands = black --check src
[testenv:pypy3-benchmark]
deps = {[testenv:benchmark]deps}
commands = {[testenv:benchmark]commands}
[testenv:docs]
usedevelop = True
changedir = docs
deps =
-r docs/requirements.txt
commands =
python -m sphinx -M html . _build
basepython = python3.12