Stabilize flake8 tests on 3.26 branch 3.26
authorPhilippe Pepiot <philippe.pepiot@logilab.fr>
Mon, 29 Oct 2018 10:09:19 +0100
branch3.26
changeset 12354 addfdabaa35f
parent 12352 1a0159426def
child 12362 aa3581fc685c
Stabilize flake8 tests on 3.26 branch Use basepython=python2 or flake8 installed with python3 will raise "[F821] undefined name 'buffer'" Pin flake8 < 3.6 which has new checks that doesn't pass on our current code base.
tox.ini
--- a/tox.ini	Tue Oct 02 16:04:52 2018 +0200
+++ b/tox.ini	Mon Oct 29 10:09:19 2018 +0100
@@ -18,9 +18,10 @@
   web: {envpython} -m pytest {posargs} {toxinidir}/cubicweb/web/test
 
 [testenv:flake8]
+basepython=python2
 skip_install = true
 deps =
-  flake8 >= 3.5
+  flake8 >= 3.5, < 3.6
 whitelist_externals =
   /bin/sh
 commands = /bin/sh -c "flake8 `xargs -a {toxinidir}/flake8-ok-files.txt`"