-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
77 lines (69 loc) · 1.27 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
[tox]
minversion=3.14.6
envlist = py{37,38,39}, linters
[testenv]
deps =
-r {toxinidir}/requirements.txt
-r {toxinidir}/dev-requirements.txt
commands =
pytest {posargs}
[testenv:linters]
basepython = python3
skip_install = true
deps =
{[testenv:format]deps}
{[testenv:flake8]deps}
{[testenv:mypy]deps}
commands =
{[testenv:format]commands}
{[testenv:flake8]commands}
{[testenv:mypy]commands}
[testenv:flake8]
basepython = python3
skip_install = true
deps =
flake8
flake8-bugbear
commands =
flake8 --version
flake8 src/ tests/ setup.py
[testenv:format]
basepython = python3
skip_install = true
deps =
black
isort
commands =
isort --version
isort src/ tests/ setup.py
black --version
black src/ tests/ setup.py
[testenv:mypy]
basepython = python3
deps =
mypy
commands =
mypy --version
mypy src/ setup.py
[testenv:build]
basepython = python3
skip_install = true
whitelist_externals =
make
deps =
wheel
setuptools
commands =
make clean
python setup.py -q sdist bdist_wheel
[testenv:release]
basepython = python3
skip_install = true
whitelist_externals =
make
deps =
{[testenv:build]deps}
twine
commands =
{[testenv:build]commands}
twine upload --skip-existing dist/*