Test: update tox configuration
authorNsukami Patrick <ndkpatt at gmail dot com>
Tue, 05 Mar 2019 14:14:13 +0000
changeset 384 d6f50d7c648b
parent 383 2f8add201e76
child 385 2361b6621c2c
Test: update tox configuration - install deps from dev-requiremnts.txt file - update pytest section - update flake8 section
dev-requirements.txt
tox.ini
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-requirements.txt	Tue Mar 05 14:14:13 2019 +0000
@@ -0,0 +1,2 @@
+https://hg.logilab.org/master/cubes/sioc/archive/default.tar.bz2
+
--- a/tox.ini	Tue Mar 05 14:06:07 2019 +0000
+++ b/tox.ini	Tue Mar 05 14:14:13 2019 +0000
@@ -1,31 +1,32 @@
 [tox]
-envlist = py27,py3,flake8
+envlist = py27, py3, flake8
 
 [testenv]
 deps =
   pytest
-  https://hg.logilab.org/master/cubes/sioc/archive/default.tar.bz2
+  -rdev-requirements.txt
 commands =
   {envpython} -m pytest {posargs}
 
+[pytest]
+python_files = *test_*.py
+testpaths = test
+addopts = -r fEs
+
 [testenv:flake8]
+basepython = python3
 skip_install = true
 deps =
   flake8
-commands = flake8
+commands = {envpython} -m flake8 {toxinidir} {posargs}
+
+[flake8]
+max-line-length = 100
+ignore = E731,W503
+exclude = cubicweb_blog/__pkginfo__.py,cubicweb_blog/migration/*,test/data/*,.tox/*
 
 [testenv:flake8-jenkins]
 skip_install = true
 deps =
   flake8
 commands = flake8 --exit-zero --show-source --output-file=code_quality.log {toxinidir}
-
-[flake8]
-format = pylint
-max-line-length = 100
-ignore = E731,W503
-exclude = cubicweb_blog/__pkginfo__.py,cubicweb_blog/migration/*,test/data/*,.tox/*
-
-[pytest]
-python_files = *test_*.py
-testpaths = test