summaryrefslogtreecommitdiffstats
path: root/ansible_collections/community/okd/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ansible_collections/community/okd/tox.ini (renamed from ansible_collections/junipernetworks/junos/tox.ini)33
1 files changed, 19 insertions, 14 deletions
diff --git a/ansible_collections/junipernetworks/junos/tox.ini b/ansible_collections/community/okd/tox.ini
index 55a02e59e..57fd1d921 100644
--- a/ansible_collections/junipernetworks/junos/tox.ini
+++ b/ansible_collections/community/okd/tox.ini
@@ -1,32 +1,37 @@
-
[tox]
-minversion = 1.4.2
-envlist = linters
skipsdist = True
[testenv]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
+install_command = pip install {opts} {packages}
[testenv:black]
-install_command = pip install {opts} {packages}
+deps =
+ black >= 23.0, < 24.0
+
commands =
- black -v {toxinidir}
+ black {toxinidir}/plugins {toxinidir}/tests
-[testenv:linters]
-install_command = pip install {opts} {packages}
+[testenv:ansible-lint]
+deps =
+ ansible-lint==6.21.0
+changedir = {toxinidir}
commands =
- black -v --diff --check {toxinidir}
- flake8 {posargs}
+ ansible-lint
-[testenv:venv]
-commands = {posargs}
+[testenv:linters]
+deps =
+ flake8
+ {[testenv:black]deps}
+
+commands =
+ black -v --check --diff {toxinidir}/plugins {toxinidir}/tests
+ flake8 {toxinidir}
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
-
-show-source = True
+exclude = .git,.tox,tests/output
ignore = E123,E125,E203,E402,E501,E741,F401,F811,F841,W503
max-line-length = 160
builtins = _
-exclude = .git,.tox,tests/unit/compat/