-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathtox.ini
118 lines (108 loc) · 3.01 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
[tox]
envlist = deps, flake8, pylint, black, broken-symlinks
skipsdist = true
[testenv]
basepython = python3.9
[testenv:deps]
sitepackages = false
passenv = *
deps =
-rrequirements.txt
coverage
[testenv:flake8]
deps =
flake8==3.9.0
commands =
{envpython} -m flake8 \
ost_utils \
basic-suite-master/test-scenarios \
hc-basic-suite-master/test-scenarios \
he-basic-suite-master/test-scenarios \
ansible-suite-master/test-scenarios \
network-suite-master/fixtures \
network-suite-master/ovirtlib \
network-suite-master/testlib \
network-suite-master/test-scenarios
[testenv:pylint]
sitepackages = false
passenv = *
deps =
-rrequirements.txt
pylint==2.7.2
commands =
{envpython} -m pylint \
-j{env:PYLINT_JOBS:2} \
--reports=no \
--score=no \
ost_utils \
basic-suite-master/test-scenarios \
hc-basic-suite-master/test-scenarios \
he-basic-suite-master/test-scenarios \
ansible-suite-master/test-scenarios \
network-suite-master/fixtures \
network-suite-master/ovirtlib \
network-suite-master/testlib \
network-suite-master/test-scenarios
[testenv:black]
deps =
black==21.12b0
click==8.0.2
commands =
{envpython} -m black \
-l 119 \
-t py39 \
-S \
--check \
--diff \
ansible-suite-master/test-scenarios \
basic-suite-master/test-scenarios \
he-basic-suite-master/test-scenarios \
network-suite-master/fixtures \
network-suite-master/ovirtlib \
network-suite-master/testlib \
network-suite-master/test-scenarios \
ost_utils
[testenv:broken-symlinks]
allowlist_externals =
bash
commands =
bash ./common/scripts/check_broken_symlinks.sh
[testenv:copyright-notices]
allowlist_externals =
bash
commands =
bash ./common/scripts/check_copyright_notices.sh
[testenv:docs]
basepython = python3.10
passenv = *
setenv =
LC_ALL = C
skip_install=True
allowlist_externals =
mkdir
commands =
mkdir -p docs/docs
{envpython} -m mkdocs build --clean --site-dir _build/html \
--config-file ./docs/mkdocs.yaml
deps =
-r docs/requirements.txt
[testenv:ansible-lint]
deps =
ansible-lint
commands =
ansible-lint \
--skip-list yaml[truthy],no-changed-when,package-latest,yaml[octal-values],no-handler \
--parseable \
common/setup/setup_playbook.yml \
common/scripts/fetch_artifacts_playbook.yml
[flake8]
max-line-length = 119
extend-ignore = E203
per-file-ignores =
conftest.py:F401,F403
# TODO: Reformat code so that most of these can be removed eventually
ost_utils/pytest/*:F403,E501,F811,F401
basic-suite-master/test-scenarios/*:E721,E741,F402,E712,F405,F841,F632,F811,F403,F401,E501
he-basic-suite-master/test-scenarios/*:E721,E741,F811,E712,F402,F841,F401,F403,E501
hc-basic-suite-master/test-scenarios/*:E117,E203,E211,E265,E741,E202,E261,F403,E302,F401,E501
show_source = True