forked from samba-in-kubernetes/sit-test-cases
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
64 lines (55 loc) · 1.08 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
[tox]
envlist = pytest, sanity, flake8, black, mypy, py39, py310, py311
isolated_build = True
[testenv]
minversion = 3.9
passenv =
TEST_INFO_FILE
PYTHONPATH
deps = pytest
commands = py.test -v .
[testenv:pytest]
deps =
pytest
pyyaml
pytest-randomly
iso8601
commands = pytest -vrfEsxXpP testcases/
[testenv:pytest-unprivileged]
deps =
pytest
pyyaml
pytest-randomly
iso8601
commands = pytest -vrfEsxXpP -k 'not privileged' testcases/
[testenv:sanity]
deps =
pytest
pyyaml
pytest-randomly
iso8601
changedir = {toxinidir}
commands = pytest -vrfEsxXpP testcases/consistency
[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