initial tox.ini
authorArthur Lutz <arthur.lutz@logilab.fr>
Wed, 18 May 2016 16:56:10 +0200
changeset 31 06b7a9deb061
parent 30 0f44d0b3152e
child 52 80e25f895d87
initial tox.ini
tox.ini
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tox.ini	Wed May 18 16:56:10 2016 +0200
@@ -0,0 +1,33 @@
+[tox]
+envlist = py27,flake8
+
+[tox:jenkins]
+envlist = py27,flake8-jenkins
+
+[testenv]
+sitepackages = true
+deps =
+  pytest
+commands =
+  {envpython} -m pytest {posargs:test}
+
+[testenv:flake8]
+skip_install = true
+whitelist_externals =
+  flake8
+deps =
+  flake8
+commands = flake8
+[testenv:flake8-jenkins]
+skip_install = true
+whitelist_externals =
+  flake8
+deps =
+  flake8
+commands = flake8 --exit-zero --show-source --output-file=code_quality.log {toxinidir}
+
+[flake8]
+format = pylint
+max-line-length = 100
+ignore = E731,W503
+exclude = __pkginfo__.py,migration/*,test/data/*,setup.py,.tox/*