[PATCH 2 of 5 seo] Add a tox config file

Philippe Pepiot philippe.pepiot at logilab.fr
Thu Mar 5 14:54:29 CET 2020


# HG changeset patch
# User Philippe Pepiot <philippe.pepiot at logilab.fr>
# Date 1583408455 -3600
#      Thu Mar 05 12:40:55 2020 +0100
# Node ID 0b8e81f446086c0a6bc21a6fe56e73f5c5bad997
# Parent  13218d4b4c5fd6636ccaf6eab09f08997b1d4ea9
Add a tox config file

This add basic py3, flake8 and check-manifest

diff --git a/tox.ini b/tox.ini
new file mode 100644
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,32 @@
+[tox]
+envlist = 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
+skipsdist = true
+deps =
+  flake8
+commands = {envpython} -m flake8 {toxinidir} {posargs}
+
+[flake8]
+max-line-length = 100
+exclude = cubicweb_seo/migration/*,.tox/*
+
+[testenv:check-manifest]
+skip_install = true
+skipsdist = true
+deps =
+  check-manifest
+commands =
+  {envpython} -m check_manifest




More information about the cubicweb-devel mailing list