blob: c758a9139f183dd2e4a9afe677ac90f48649ae2f [file] [log] [blame]
Peter Pentchevd00519f2021-11-08 01:17:13 +02001[tox]
2envlist =
3 black
4 pep8
5 pep8h
6 mypy
7 pylint
8 unit-tests
9 functional-test
10isolated_build = True
11
12
13[defs]
14pyfiles =
15 src/sp_rand
16 unit_tests
17
18[testenv:black]
19skip_install = True
20deps =
Peter Pentchev1e9ba6a2022-06-23 17:20:01 +030021 black >= 22, < 23
Peter Pentchevd00519f2021-11-08 01:17:13 +020022commands =
23 black --check {[defs]pyfiles}
24
25[testenv:black-reformat]
26skip_install = True
27deps =
Peter Pentchev1e9ba6a2022-06-23 17:20:01 +030028 black >= 22, < 23
Peter Pentchevd00519f2021-11-08 01:17:13 +020029commands =
30 black {[defs]pyfiles}
31
32[testenv:pep8]
33skip_install = True
34deps =
35 flake8
36commands =
37 flake8 {[defs]pyfiles}
38
39[testenv:pep8h]
40skip_install = True
41deps =
42 flake8
43 hacking >= 4
44commands =
45 flake8 {[defs]pyfiles}
46
47[testenv:mypy]
48skip_install = True
49deps =
50 confget >= 4
51 mypy
52 pytest >= 6
53commands =
54 mypy {[defs]pyfiles}
55
56[testenv:pylint]
57skip_install = True
58deps =
59 confget >= 4
60 pylint
61 pytest >= 6
62 storpool >= 6
63commands =
64 pylint {[defs]pyfiles}
65
66[testenv:unit-tests]
67deps =
68 pytest >= 6
69commands =
70 pytest unit_tests
71
72[testenv:functional-test]
73commands =
74 {toxinidir}/test_functional.sh