forked from redhat-cop/cloud.vmware_ops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
72 lines (61 loc) · 1.22 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
[tox]
minversion = 4.0
skipsdist = True
[common]
format_dirs = {toxinidir}/plugins {toxinidir}/tests
[testenv]
deps = -r {toxinidir}/requirements.txt
-r {toxinidir}/test-requirements.txt
install_command = pip install {opts} {packages}
[testenv:ansible-lint]
deps =
ansible-lint==6.22.0
changedir = {toxinidir}
commands =
ansible-lint
[testenv:black]
deps =
black
commands =
black --check --diff {[common]format_dirs}
[testenv:black_format]
deps =
{[testenv:black]deps}
commands =
black -v {[common]format_dirs}
[testenv:flake8]
deps =
flake8
commands =
flake8 {[common]format_dirs}
[testenv:isort]
deps =
isort
commands =
isort --check-only --diff {[common]format_dirs}
[testenv:isort_format]
deps =
{[testenv:isort]deps}
commands =
isort -v {[common]format_dirs}
[testenv:format]
deps =
{[testenv:black]deps}
{[testenv:isort]deps}
commands =
{[testenv:black]commands}
{[testenv:isort]commands}
[testenv:linters]
deps =
{[testenv:black]deps}
{[testenv:flake8]deps}
{[testenv:isort]deps}
commands =
{[testenv:black]commands}
{[testenv:flake8]commands}
{[testenv:isort]commands}
[flake8]
exclude = .git,.tox,tests/output
ignore = E402, E501, W503, W504
max-line-length = 160
builtins = _