-
-
Notifications
You must be signed in to change notification settings - Fork 61
/
tox.ini
60 lines (50 loc) · 1.12 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,mypy,coverage-clean,{pypy3,py38,py310,py311}-{extras,noextras},coverage-report
[testenv]
deps =
extras: graphviz>=0.4.9
extras: Twisted>=16.2.0
coverage
pytest
commands =
coverage run --parallel --source automat -m pytest automat/_test
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 automat
[testenv:mypy]
deps =
mypy
graphviz>=0.4.9
Twisted>=16.2.0
commands = mypy automat
[testenv:pypy3-benchmark]
deps = {[testenv:benchmark]deps}
commands = {[testenv:benchmark]commands}
[testenv:docs]
usedevelop = True
changedir = docs
deps =
sphinx
sphinx_rtd_theme
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
basepython = python3.8