[PATCH 3 of 3 activitystream] Add a tox config file

Philippe Pepiot philippe.pepiot at logilab.fr
Wed Jun 12 16:58:17 CEST 2019


# HG changeset patch
# User Philippe Pepiot <philippe.pepiot at logilab.fr>
# Date 1560351370 -7200
#      Wed Jun 12 16:56:10 2019 +0200
# Node ID bc78895e12adb29f5e3eaf40e7140fbace742117
# Parent  750f321246e40a1852f48e4625227a98ae2a0395
Add a tox config file

diff --git a/tox.ini b/tox.ini
new file mode 100644
--- /dev/null
+++ b/tox.ini
@@ -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



More information about the cubicweb-devel mailing list