forked from algolia/python-netplan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
48 lines (42 loc) · 932 Bytes
/
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
[tox]
envlist = pep8,mypy_3,unit_tests_3,pylint,black
skipsdist = True
[testenv:mypy_3]
basepython = python3
deps =
mypy
types-PyYAML
commands =
mypy --strict netplan
mypy --strict --ignore-missing-imports --allow-untyped-decorators unit_tests
[testenv:unit_tests_3]
basepython = python3
deps =
ddt
pytest
PyYAML
commands = pytest -s -vv {posargs}
[testenv:pep8]
basepython = python3
deps = flake8
commands =
flake8 --max-line-length=100 {posargs} bin/netplan-parser netplan unit_tests
[testenv:pylint]
basepython = python3
deps =
ddt
pylint
pytest
PyYAML
commands =
pylint --disable=fixme,useless-object-inheritance,bad-continuation netplan unit_tests
[testenv:black]
basepython = python3
deps =
black
commands = black --check --line-length 100 setup.py netplan unit_tests
[testenv:black_reformat]
basepython = python3
deps =
black
commands = black --line-length 100 setup.py netplan unit_tests