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