-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtox.ini
80 lines (73 loc) · 1.28 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]
minversion=4
envlist =
py{37,38,39,310,311}
linters
[testenv]
deps =
-r requirements.txt
pytest
pytest-asyncio
commands =
pytest -c setup.cfg {posargs}
[testenv:linters]
basepython = python3
skip_install = true
deps =
{[testenv:black]deps}
{[testenv:flake8]deps}
{[testenv:mypy]deps}
commands =
{[testenv:black]commands}
{[testenv:flake8]commands}
{[testenv:mypy]commands}
[testenv:flake8]
basepython = python3
skip_install = true
deps =
flake8
commands =
flake8 --version
flake8 src/ tests/ setup.py
[testenv:black]
basepython = python3
skip_install = true
deps =
black
isort
commands =
isort --version
isort src/ tests/
black --version
black src/ tests/ setup.py
[testenv:mypy]
basepython = python3
skip_install = true
deps =
-r requirements.txt
mypy
commands =
mypy --version
mypy src/ tests/ setup.py
[testenv:build]
basepython = python3
skip_install = true
allowlist_externals =
make
deps =
wheel
setuptools
commands =
make clean
python setup.py -q sdist bdist_wheel
[testenv:release]
basepython = python3
skip_install = true
allowlist_externals =
make
deps =
{[testenv:build]deps}
twine
commands =
{[testenv:build]commands}
twine upload --skip-existing dist/*