forked from telekom-mms/ansible-collection-icinga-director
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
39 lines (32 loc) · 878 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
[tox]
minversion = 1.4.2
envlist = linters,ansible-lint
skipsdist = True
[testenv]
basepython = python3
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = find {toxinidir} -type f -name "*.py[c|o]" -delete
whitelist_externals = bash
[testenv:black]
install_command = pip install {opts} {packages}
commands =
black -v -l80 {toxinidir}
[testenv:linters]
install_command = pip install {opts} {packages}
commands =
black -v -l80 --check {toxinidir}
flake8 {posargs}
yamllint -c .yamllint -s .
/bin/bash -c "find examples/ -type f -name '*.yml' -exec ansible-lint -v \{\} \;"
[testenv:ansible-lint]
commands =
[testenv:venv]
commands = {posargs}
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125,E402,W503
max-line-length = 160
builtins = _
exclude = .git,.tox,tests/unit/compat/