[tox]
envlist = py35, py36, flake8

[testenv:flake8]
basepython=python
deps=flake8
commands=
    {[testenv]deps}
    pipenv install --dev
    pipenv run flake8 aiohttp_json_api

[testenv]
passenv =
    PYTHONPATH = {toxinidir}:{toxinidir}/aiohttp_json_api
deps =
    pipenv
commands =
    pipenv install --dev
    pipenv run py.test --basetemp={envtmpdir}

[tox]
envlist = py35, py36, flake8

[testenv:flake8]
basepython=python
deps=flake8
commands=
    pipenv install --dev
    pipenv run flake8 aiohttp_json_api

[testenv]
passenv =
    PYTHONPATH = {toxinidir}:{toxinidir}/aiohttp_json_api
deps =
    pipenv
commands =
    pipenv install --dev
    pipenv run py.test --basetemp={envtmpdir}

Fix bug with wrong command in Tox
Fix bug with wrong command in Tox
