-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtox.ini
70 lines (61 loc) · 1.18 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
[tox]
envlist = flake8, black, mypy
isolated_build = True
[testenv]
passenv =
TEST_INFO_FILE
PYTHONPATH
[testenv:pytest]
deps =
pytest
pyyaml
pytest-randomly
iso8601
smbprotocol
commands = pytest -vrfEsxXpP testcases/ --durations=0
[testenv:pytest-unprivileged]
deps =
pytest
pyyaml
pytest-randomly
iso8601
smbprotocol
commands = pytest -vrfEsxXpP -k 'not privileged' testcases/ --durations=0
[testenv:sanity]
deps =
pytest
pyyaml
pytest-randomly
iso8601
smbprotocol
changedir = {toxinidir}
commands = pytest -vrfEsxXpP testcases/consistency
[testenv:selftest]
deps =
pytest
pyyaml
changedir = {toxinidir}/selftest
commands = pytest -vrfEsxXpP .
[testenv:flake8]
deps = flake8
changedir = {toxinidir}
commands = flake8 .
[testenv:black]
deps = black>=23.3.0
changedir = {toxinidir}
commands = black --check -l 79 -v .
[testenv:mypy]
deps =
mypy>=0.971
pytest
types-setuptools
types-pyyaml
types-python-dateutil
changedir = {toxinidir}
commands = mypy --no-color-output .
[flake8]
exclude =
__pycache__,
.*,
# selftest/*py files are copied over from samba
testcases/smbtorture/selftest