summaryrefslogtreecommitdiffstats
path: root/ansible_collections/community/zabbix/tox.ini
blob: a5124d0e5e0bb33584b51bb8e4a77e2d4911286e (plain)
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
[tox]
minversion = 1.4.2
envlist = linters
skipsdist = True

[testenv]
#deps = -r{toxinidir}/requirements.txt
#       -r{toxinidir}/test-requirements.txt

[testenv:venv]
# This env is used to push new release on Galaxy
install_command = pip install {opts} {packages}
deps = ansible
commands = {posargs}

[testenv:linters-py2]
install_command = pip install {opts} {packages}
deps =
  flake8
commands =
  flake8 plugins {posargs}

[testenv:linters-py3]
install_command = pip install {opts} {packages}
deps =
  flake8
  antsibull-changelog
commands =
  flake8 plugins {posargs}
  antsibull-changelog lint

[flake8]
per-file-ignores =
  plugins/module_utils/version.py: F401

show-source = True
ignore = E123,E125,E402,E501,E741,W503
max-line-length = 160
builtins = _
exclude = .git,.tox,tests/unit/compat/