-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
42 lines (38 loc) · 760 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
[tox]
minversion = 2.4
envlist = py{27,34,35,36,py},style,coverage,mypy
[testenv]
usedevelop = True
passenv =
https_proxy http_proxy no_proxy PYTEST_ADDOPTS
description =
py{27,34,35,36,37}: Run unit tests against {envname}.
extras =
test
commands=
pytest --durations 25 {posargs}
[testenv:style]
basepython = python3
description =
Run style checks.
deps =
flake8
commands =
flake8 rst2txt tests
[testenv:coverage]
basepython = python3
description =
Run code coverage checks.
setenv =
PYTEST_ADDOPTS = --cov rst2txt --cov-config {toxinidir}/setup.cfg
commands =
{[testenv]commands}
coverage report
[testenv:mypy]
basepython = python3
description =
Run type checks.
deps =
mypy
commands=
mypy rst2txt