[tox] add a default tox
authorNoe Gaumont <ngaumont@logilab.fr>
Fri, 12 Apr 2019 09:55:06 +0200
changeset 195 f26990ab3f7c
parent 194 490f31e7f97a
child 196 42f245688b5d
[tox] add a default tox
tox.ini
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tox.ini	Fri Apr 12 09:55:06 2019 +0200
@@ -0,0 +1,32 @@
+[tox]
+envlist = py27,py3,flake8
+
+[testenv]
+deps =
+  pytest
+commands =
+  {envpython} -m pytest {posargs}
+
+[pytest]
+python_files = *test_*.py
+testpaths = test
+addopts = -r fEs
+
+[testenv:check-manifest]
+skip_install = true
+deps =
+  check-manifest
+commands =
+  {envpython} -m check_manifest {toxinidir} {posargs}
+
+[testenv:flake8]
+basepython = python3
+skip_install = true
+deps =
+  flake8
+commands =
+  {envpython} -m flake8 {toxinidir} {posargs}
+
+[flake8]
+max-line-length = 120
+exclude = cubicweb_keyword/migration/*,.tox/*,