-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
80 lines (72 loc) · 1.17 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
[tox]
isolated_build =
True
envlist =
pypy
py36
py37
py38
py39
[testenv]
deps =
-r requirements.txt
parameterized==0.8.1
pytest==6.2.5
usedevelop =
true
commands =
pytest -q {posargs}
[testenv:coverage]
deps =
-r requirements.txt
coverage==5.5
parameterized==0.8.1
pytest==6.2.5
pytest-cov==2.12.1
basepython =
python3
commands =
pytest -q --cov-report term --cov='src' --cov-fail-under=80 {posargs}
[testenv:linter]
deps =
flake8==3.9.2
skip_install =
true
basepython =
python3
commands =
flake8 --max-line-length=90
[testenv:mypy]
deps =
mypy==0.910
skip_install =
true
basepython =
python3
commands =
mypy ./ --ignore-missing-imports --strict
[testenv:pre-commit]
deps =
pre-commit==2.15.0
skip_install =
true
basepython =
python3
commands =
pre-commit run --all-files --show-diff-on-failure
[testenv:build]
deps =
build==0.7.0
twine==3.4.2
commands =
python -m build --wheel
twine check dist/*
[testenv:docs]
whitelist_externals =
make
basepython =
python3
deps =
-r docs/requirements.txt
commands =
make -f docs/Makefile.sphinx html