forked from menandmice/ansible_micetro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
48 lines (42 loc) · 1.17 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
[tox]
minversion = 1.4.2
envlist = linters,ansible-lint
skipsdist = True
[testenv]
basepython = python3
deps = -r requirements.txt
-r test-requirements.txt
whitelist_externals = bash
[testenv:black]
install_command = pip install {packages}
commands =
black -v -l80 plugins
[testenv:linters]
install_command = pip install {packages}
commands =
black -v -l80 --check plugins
flake8 plugins
yamllint -c .yamllint -s .
ansible-lint \
docs/examples/play-claimip.yml \
docs/examples/play-dhcp.yml \
docs/examples/play-dnsrecord.yml \
docs/examples/play-freeip.yml \
docs/examples/play-group.yml \
docs/examples/play-ipinfo.yml \
docs/examples/play-props.yml \
docs/examples/play-role.yml \
docs/examples/play-user.yml \
docs/examples/play-zone.yml \
docs/examples/play_it_all.yml
[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,.cache,tests/unit/compat/