add tox configuration
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Mon, 03 Sep 2018 10:50:59 +0200
changeset 542 aabf5c567bb2
parent 541 78ef292acda7
child 543 a66a6b3ef992
add tox configuration
tox.ini
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tox.ini	Mon Sep 03 10:50:59 2018 +0200
@@ -0,0 +1,27 @@
+[tox]
+envlist = py27,py36,flake8
+
+[testenv]
+deps =
+  pytest
+  nltk
+  SPARQLWrapper
+commands =
+  {envpython} -m pytest {posargs:test}
+
+[testenv:flake8]
+skip_install = true
+whitelist_externals =
+  flake8
+deps =
+  flake8
+commands = flake8
+
+[flake8]
+exclude = examples/*,test/*,test/data/*,.tox/*
+max-line-length = 100
+
+[pytest]
+python_files = *test_*.py
+testpaths = test
+addopts = -r fEs