Skip to content

Commit

Permalink
Add tox support
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
  • Loading branch information
mjeanson committed Oct 17, 2017
1 parent 382d922 commit e4a45a2
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
2 changes: 2 additions & 0 deletions requirements.txt
@@ -0,0 +1,2 @@
termcolor
pyyaml
1 change: 1 addition & 0 deletions test-requirements.txt
@@ -0,0 +1 @@
flake8>=2.5.0
37 changes: 37 additions & 0 deletions 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

0 comments on commit e4a45a2

Please sign in to comment.