Add a tox config file
authorPhilippe Pepiot <philippe.pepiot@logilab.fr>
Wed, 12 Jun 2019 16:56:10 +0200
changeset 44 b67a202b772f
parent 43 a7f47330fcd5
child 45 5bdf425b2bc5
Add a tox config file
tox.ini
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tox.ini	Wed Jun 12 16:56:10 2019 +0200
@@ -0,0 +1,29 @@
+[tox]
+envlist = py27, py3, flake8, check-manifest
+
+[testenv]
+deps =
+  pytest
+commands =
+  {envpython} -m pytest {posargs}
+
+[pytest]
+python_files = *test_*.py
+testpaths = test
+addopts = -r fEs
+
+[testenv:flake8]
+skip_install = true
+deps =
+  flake8
+commands = {envpython} -m flake8 {toxinidir} {posargs}
+
+[flake8]
+max-line-length = 100
+
+[testenv:check-manifest]
+skip_install = true
+deps =
+  check-manifest
+commands =
+  {envpython} -m check_manifest