summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorPaul Belanger <pabelanger@redhat.com>2019-08-09 14:03:18 -0400
committerPaul Belanger <pabelanger@redhat.com>2019-08-09 15:16:14 -0400
commitc841cad0ea6013aab5a0c5620d3b40d72ef5afc0 (patch)
tree71378646561c136f5a8ab5da4edfc064b23f51eb /tox.ini
parent66a01fb3cdcedff9205b2295870a7e1629bbae69 (diff)
downloadvyos-ansible-old-c841cad0ea6013aab5a0c5620d3b40d72ef5afc0.tar.gz
vyos-ansible-old-c841cad0ea6013aab5a0c5620d3b40d72ef5afc0.zip
Add tox.ini file
Create a tox.ini file with linters entry point for developers to run linters locally. Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini23
1 files changed, 23 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..87f00fa
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,23 @@
+[tox]
+minversion = 1.4.2
+envlist = linters
+skipsdist = True
+
+[testenv]
+deps = -r{toxinidir}/requirements.txt
+ -r{toxinidir}/test-requirements.txt
+
+[testenv:linters]
+install_command = pip install {opts} {packages}
+commands =
+ black -v -l79 --check {toxinidir}
+ flake8 {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