-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtox.ini
More file actions
62 lines (54 loc) · 1.23 KB
/
tox.ini
File metadata and controls
62 lines (54 loc) · 1.23 KB
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
[tox]
envlist = pep8,mypy_2,mypy_3,unit_tests_2,unit_tests_3,pylint,black
skipsdist = True
[testenv:mypy_2]
basepython = python3
deps = mypy
commands =
mypy --disallow-untyped-defs --disallow-untyped-calls --py2 netplan
mypy --disallow-untyped-defs --disallow-untyped-calls --ignore-missing-imports --py2 unit_tests
[testenv:mypy_3]
basepython = python3
deps = mypy
commands =
mypy --strict netplan
mypy --strict --ignore-missing-imports --allow-untyped-decorators unit_tests
[testenv:unit_tests_2]
basepython = python2
deps =
ddt
pytest
PyYAML
typing
commands = pytest -s -vv {posargs}
[testenv:unit_tests_3]
basepython = python3
deps =
ddt
pytest
PyYAML
commands = pytest -s -vv {posargs}
[testenv:pep8]
basepython = python3
deps = flake8
commands =
flake8 {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 79 setup.py netplan unit_tests
[testenv:black_reformat]
basepython = python3
deps =
black
commands = black --line-length 79 setup.py netplan unit_tests