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]
envlist = py27,py34,flake8
[testenv]
deps =
pytest
commands =
{envpython} -m pytest {posargs:test}
[testenv:flake8]
skip_install = true
whitelist_externals =
flake8
deps =
flake8
commands = flake8
[flake8]
exclude = cubicweb_%(cubename)s/migration/*,test/data/*,.tox/*