summaryrefslogtreecommitdiffstats
path: root/ansible_collections/ibm/qradar/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'ansible_collections/ibm/qradar/tox.ini')
-rw-r--r--ansible_collections/ibm/qradar/tox.ini33
1 files changed, 33 insertions, 0 deletions
diff --git a/ansible_collections/ibm/qradar/tox.ini b/ansible_collections/ibm/qradar/tox.ini
new file mode 100644
index 000000000..a533ccb30
--- /dev/null
+++ b/ansible_collections/ibm/qradar/tox.ini
@@ -0,0 +1,33 @@
+[tox]
+minversion = 1.4.2
+envlist = linters
+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
+
+[testenv:black]
+install_command = pip install {opts} {packages}
+commands =
+ black -v -l79 {toxinidir}
+
+[testenv:linters]
+install_command = pip install {opts} {packages}
+commands =
+ black -v -l79 --check {toxinidir}
+ flake8 {posargs}
+
+[testenv:venv]
+commands = {posargs}
+
+[flake8]
+# E123, E125 skipped as they are invalid PEP-8.
+
+show-source = True
+ignore = E123,E125,E402,E501,E741,W503
+max-line-length = 160
+builtins = _
+exclude = .git,.tox,tests/unit/compat/