diff options
-rw-r--r-- | README | 15 | ||||
-rw-r--r-- | test-requirements.txt | 1 | ||||
-rw-r--r-- | tox.ini | 20 |
3 files changed, 36 insertions, 0 deletions
@@ -0,0 +1,15 @@ +======= +Testing +======= + +Install 'tox' package first: + + $ pip install tox + +Run all the tests (currently, it is only pep8 checks): + + $ tox + +Run only 'pep8' checks: + + $ tox -e pep8 diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 00000000..39304807 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1 @@ +flake8 diff --git a/tox.ini b/tox.ini new file mode 100644 index 00000000..460066d9 --- /dev/null +++ b/tox.ini @@ -0,0 +1,20 @@ +[tox] +minversion = 2.0 +skipsdist = True +envlist = pep8 + +[testenv] +basepython = python2.7 +setenv = VIRTUAL_ENV={envdir} +whitelist_externals = find +commands = find . -type f -name "*.py[c|o]" -delete + +[testenv:pep8] +deps = -r{toxinidir}/test-requirements.txt +commands = flake8 {posargs} + +[testenv:venv] +commands = {posargs} + +[flake8] +exclude = .git,.tox,.venv,*egg,docs,examples,templates |