forked from ansible-collections/ansible.netcommon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
31 lines (26 loc) · 742 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
[tox]
minversion = 1.4.2
envlist = linters
skipsdist = True
[testenv]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
[testenv:black]
install_command = pip install {opts} {packages}
commands =
black -l79 --exclude '\.git|\.mypy_cache|\.tox|tests/output' {toxinidir}
[testenv:linters]
install_command = pip install {opts} {packages}
commands =
black -l79 --exclude '\.git|\.mypy_cache|\.tox|tests/output' --check {toxinidir}
flake8 {posargs}
yamllint -s .
[testenv:venv]
commands = {posargs}
[flake8]
show-source = True
# E123, E125 skipped as they are invalid PEP-8.
ignore = E123,E125,E402,W503
max-line-length = 160
builtins = _
exclude = .git,.mypy_cache,.tox,tests/unit/compat/,tests/output/