-
Notifications
You must be signed in to change notification settings - Fork 116
/
Copy pathtox.ini
78 lines (72 loc) · 1.63 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
[tox]
requires =
tox>=4.2
env_list =
format
lint
oapi
no_package = true
[testenv:format]
deps =
{[deps]lint}
commands =
isort {[files]lint}
black -q {[files]lint}
- pyproject-fmt pyproject.toml
- tox-ini-fmt tox.ini
[testenv:lint]
deps =
{[deps]lint}
commands =
isort --check-only --diff {[files]lint}
black --check {[files]lint}
flake8 {[files]lint}
pyproject-fmt --check pyproject.toml
[testenv:oapi]
deps =
{[deps]oapi}
commands =
{envpython} utilities/check-oapi openapi.yaml
[testenv:bandit]
deps =
bandit[toml]
commands =
bandit -c pyproject.toml -ll -r {[files]lint}
[files]
lint =
package-files/usr/lib/maas/maas-delete-file \
package-files/usr/lib/maas/maas-write-file \
package-files/usr/sbin/maas-dhcp-helper \
setup.py \
src/maasapiserver \
src/maascli \
src/maascommon \
src/maasserver \
src/maasservicelayer \
src/maastemporalworker \
src/maastesting/ \
src/metadataserver \
src/perftests \
src/provisioningserver \
src/provisioningserver/refresh/50-maas-01-commissioning \
src/tests/ \
utilities/bin2python.py \
utilities/check-imports \
utilities/check-oapi \
utilities/import-db-dump \
utilities/python_standard_libs.py \
utilities/regiond-storm \
utilities/snap-bind-mounts
[deps]
lint =
black >= 24.10, <24.11
click >= 8.1, <8.2
flake8 >= 7.1, <7.2
flake8-pyproject >= 1.2, <1.3
isort >= 5.13, <5.14
pyproject-fmt >= 2.5, <2.6
setup-cfg-fmt >= 2.7, <2.8
tox-ini-fmt >= 1.4, <1.5
oapi =
openapi-spec-validator == 0.7.1
jsonschema == 4.23.0