-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
tox.ini
64 lines (53 loc) · 993 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[tox]
envlist = linters,typecheck,unit-tests
requires =
tox>=4
skipsdist=True
[testenv]
deps =
commands =
python -I -m build --wheel -C=--build-option=-- -C=--build-option=-- -C=--build-option=-j4
[testenv:unit-tests]
deps =
{[testenv]deps}
pytest
parameterized
commands =
pytest #-rP
[testenv:flake8]
deps =
; {[testenv]deps}
flake8
commands =
flake8 ./gweatherrouting
[testenv:isort]
deps =
; {[testenv]deps}
isort
commands =
isort .
[testenv:black]
deps =
; {[testenv]deps}
black[jupyter]
commands =
black .
[testenv:typecheck]
; allowlist_externals = mypy # TODO: why?
deps =
; {[testenv]deps}
mypy
types-setuptools
types-requests
types-python-dateutil
commands =
mypy ./gweatherrouting
[testenv:linters]
deps =
{[testenv:isort]deps}
{[testenv:black]deps}
{[testenv:flake8]deps}
commands =
{[testenv:isort]commands}
{[testenv:black]commands}
{[testenv:flake8]commands}