Add tox support
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 17 Oct 2017 18:45:42 +0000 (14:45 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Tue, 17 Oct 2017 19:07:33 +0000 (15:07 -0400)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
requirements.txt [new file with mode: 0644]
test-requirements.txt [new file with mode: 0644]
tox.ini [new file with mode: 0644]

diff --git a/requirements.txt b/requirements.txt
new file mode 100644 (file)
index 0000000..9d63f29
--- /dev/null
@@ -0,0 +1,2 @@
+termcolor
+pyyaml
diff --git a/test-requirements.txt b/test-requirements.txt
new file mode 100644 (file)
index 0000000..efb4092
--- /dev/null
@@ -0,0 +1 @@
+flake8>=2.5.0
diff --git a/tox.ini b/tox.ini
new file mode 100644 (file)
index 0000000..4accbcd
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,37 @@
+[tox]
+minversion = 1.9
+envlist = py3,pep8
+skipsdist = True
+toxworkdir = {env:TOXWORKDIR:.tox}
+
+[testenv]
+setenv =
+       PYTHONPATH = {env:PYTHONPATH:}
+deps = -r{toxinidir}/requirements.txt
+       -r{toxinidir}/test-requirements.txt
+whitelist_externals = bash
+changedir = tests
+commands = bash ./test.bash -t
+
+[testenv:pep8]
+commands = flake8 --ignore=E123,E125
+
+[flake8]
+# E123, E125 skipped as they are invalid PEP-8.
+
+show-source = True
+ignore = E123,E125
+builtins = _
+exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
+
+[testenv:pylint-errors]
+deps = pylint >= 1.6
+commands = pylint -f colorized -E barectf
+
+[testenv:pylint-warnings]
+deps = pylint >= 1.6
+commands = pylint -f colorized -d all -e W -r n barectf
+
+[testenv:pylint-full]
+deps = pylint >= 1.6
+commands = pylint -f colorized --disable=all -e R,E,W barectf
This page took 0.024091 seconds and 4 git commands to generate.