generated from ansible-collections/collection_template
-
Notifications
You must be signed in to change notification settings - Fork 17
/
tox.ini
43 lines (35 loc) · 761 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
[tox]
minversion = 1.4.2
skipsdist = True
[testenv]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
install_command = pip install {opts} {packages}
[testenv:black]
deps =
black >= 23.0, < 24.0
commands =
black {toxinidir}/plugins {toxinidir}/tests
[testenv:ansible-lint]
deps =
ansible-lint >= 24.7.0
changedir = {toxinidir}
commands =
ansible-lint
[testenv:linters]
deps =
yamllint
flake8
{[testenv:black]deps}
commands =
black -v --check --diff {toxinidir}/plugins {toxinidir}/tests
yamllint -s {toxinidir}
flake8 {toxinidir}
[testenv:sanity]
deps = ansible
commands = ansible-test sanity
[flake8]
exclude = .git,.tox,tests/output
ignore = E501, W503, W504, E402
max-line-length = 160
builtins = _