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