-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
108 lines (98 loc) · 1.77 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
[tox]
envlist =
black
pep8
mypy_2
mypy_3
pylint_3
unit_tests_2
unit_tests_3
functional_2
functional_3
[testenv:pep8]
basepython = python3
skip_install = True
deps =
flake8 >= 5, < 6
commands =
flake8 setup.py storpool test_func.py unit_tests
[testenv:mypy_2]
basepython = python3
skip_install = True
deps =
mypy[python2] >= 0.931, < 0.980
types-mock < 4
types-six < 1.16.12
setenv =
MYPYPATH = {toxinidir}/stubs/common:{toxinidir}/stubs/2
commands =
mypy --py2 --strict --no-warn-unused-ignores setup.py storpool unit_tests
[testenv:mypy_3]
basepython = python3
skip_install = True
deps =
mypy >= 0.931, < 0.980
pytest >= 6
types-six
setenv =
MYPYPATH = {toxinidir}/stubs/common
commands =
mypy setup.py storpool unit_tests
[testenv:unit_tests_2]
basepython = python2
skip_install = True
deps =
mock
pathlib2
pytest
six
commands =
pytest -s -vv unit_tests
[testenv:unit_tests_3]
basepython = python3
skip_install = True
deps =
pytest
six
commands =
pytest -s -vv unit_tests
[testenv:functional_2]
basepython = python2
deps =
pathlib2
storpool >= 7.2.0, < 8
typing
commands =
python test_func.py
[testenv:functional_3]
basepython = python3
deps =
storpool >= 7.2.0, < 8
commands =
python test_func.py
[testenv:pylint_3]
basepython = python3
skip_install = True
deps =
pylint
pytest
six
commands =
pylint test_func.py unit_tests
[testenv:black]
basepython = python3
skip_install = True
deps =
black >= 21b0, < 22b0
click >= 7, < 8
commands =
black --check setup.py storpool test_func.py unit_tests
# NB: do not include this one in tox.envlist! :)
[testenv:black_reformat]
basepython = python3
skip_install = True
deps =
black >= 21b0, < 22b0
click >= 7, < 8
commands =
black setup.py storpool test_func.py unit_tests