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.
--- 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`"