Wrap flake8

Wrapping flake8 give a possibility to a user to dissable flake8 via
setting environment variable in config.sh.
This commit is contained in:
Jiri Kucera 2020-01-20 10:10:14 +01:00
parent 7007a0ec1f
commit fc0c37efc1
3 changed files with 42 additions and 2 deletions

View file

@ -153,11 +153,13 @@ commands =
[testenv:flake8]
envdir = {toxworkdir}/env-{env:TRAVIS_PYTHON_VERSION:2.7}
basepython = python2.7
passenv = RUN_FLAKE8_*
deps =
flake8>=3.5
whitelist_externals = flake8
whitelist_externals =
{[base]whitelist_externals}
commands =
flake8 --statistics {posargs} .
bash {toxinidir}/.travis/runflake8.sh {envpython} --statistics {posargs} .
[testenv:coveralls]
envdir = {toxworkdir}/env-{env:TRAVIS_PYTHON_VERSION:coveralls}