-
Notifications
You must be signed in to change notification settings - Fork 57
/
tox.ini
45 lines (39 loc) · 847 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
[tox]
minversion = 2.0
envlist = py{37,38,39}-click{7,8,8-async},py{310,311}-click{8,8-async},style,docs
[testenv]
setenv =
PYTHONDEVMODE = 1
PYTHONWARNINGS = all
PYTEST_ADDOPTS = {env:PYTEST_ADDOPTS:} --color yes
deps =
pytest
pytest-cov
coverage
click7: click>=7.0,<8.0
click8: click>=8.0,<9.0
click8-async: asyncclick>=8.0,<9.0
commands =
python -m pytest --cov {toxinidir}/sphinx_click {posargs}
pip_pre =
pre: true
[testenv:coverage]
commands =
{[testenv]commands}
coverage {posargs:html}
[testenv:style]
deps =
flake8
commands =
flake8 {toxinidir}/sphinx_click/
[testenv:mypy]
deps =
mypy
types-docutils
commands =
mypy sphinx_click
[testenv:docs]
commands =
sphinx-build -Wn -b html -d docs/_build/doctrees docs docs/_build/html
[coverage:run]
branch = True