[tox]
envlist = py27,py34,py35,pypy,pep8
minversion = 2.0
skipsdist = True

[testenv]
usedevelop = True
install_command = pip install {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
         OS_STDOUT_NOCAPTURE=False
         OS_STDERR_NOCAPTURE=False
         PYTHONHASHSEED=0
deps =
       -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
       -r{toxinidir}/requirements.txt
       -r{toxinidir}/test-requirements.txt
commands = stestr run {posargs}

[testenv:pep8]
basepython = python3
deps = {[testenv]deps}
    flake8<3.7.0,>=3.6.0
    bandit>=1.1.0
commands =
    flake8
    bandit -r -s B701 renderspec -x tests

[testenv:venv]
basepython = python3
commands = {posargs}

[flake8]
exclude =  .venv,.git,.tox,dist,doc,*lib/python*,*egg,build

[testenv:docs]
basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
commands =
    python setup.py build_sphinx


[tox]
envlist = py27,py34,py35,pypy,pep8
minversion = 2.0
skipsdist = True

[testenv]
usedevelop = True
install_command = pip install {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
         OS_STDOUT_NOCAPTURE=False
         OS_STDERR_NOCAPTURE=False
         PYTHONHASHSEED=0
deps =
       -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
       -r{toxinidir}/requirements.txt
       -r{toxinidir}/test-requirements.txt
commands = stestr run {posargs}

[testenv:pep8]
basepython = python3
deps = {[testenv]deps}
    flake8<3.8.0,>=3.7.0
    bandit>=1.1.0
commands =
    flake8
    bandit -r -s B701 renderspec -x tests

[testenv:venv]
basepython = python3
commands = {posargs}

[flake8]
exclude =  .venv,.git,.tox,dist,doc,*lib/python*,*egg,build

[testenv:docs]
basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
commands =
    python setup.py build_sphinx


Update flake8 version to latest release
Update flake8 version to latest release

Doesn't require any modifications, so newer is better.

Change-Id: I7c81c1ab4914392fbdfd985604b79b1b945a9f59
