forked from canonical/maas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
67 lines (62 loc) · 1.34 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
[tox]
requires =
tox>=4.2
env_list =
format
lint
oapi
no_package = true
[testenv:format]
deps =
{[deps]lint}
commands =
setup-cfg-fmt setup.cfg
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
[files]
lint =
package-files/usr/lib/maas/maas-delete-file \
package-files/usr/sbin/maas-dhcp-helper \
setup.py \
src/maasapiserver \
src/maascli \
src/maasserver \
src/maastesting/ \
src/metadataserver \
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/snap-bind-mounts
[deps]
lint =
black == 23.1.0
click == 8.1.3
flake8 == 6.0.0
flake8-pyproject == 1.2.3
isort == 5.12.0
pyproject-fmt==0.9.2
setup-cfg-fmt==2.2.0
tox-ini-fmt==1.3.0
oapi =
openapi-spec-validator == 0.4.0
jsonschema <= 4.17.0