[tox]
envlist = system

[testenv]
basepython = python
deps =
    -rtests/requirements.txt
    -rsrt_tools/tests/requirements.txt
commands =
    nosetests -q

[testenv:system]

[testenv:coverage]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps =
    {[testenv]deps}
    coveralls
commands =
    coverage erase
    nosetests -v --with-coverage --cover-branches --cover-package=srt
    # Readd after 500s go away
    # coveralls

[testenv:pylint]
skipsdist = True
deps =
    {[testenv]deps}
    pylint
commands =
    pylint srt.py

[testenv:black]
skipsdist = True
whitelist_externals = sh
deps =
    black
commands =
    black --check .
    sh -c 'exec black --check srt_tools/srt*'

[testenv:pytype]
skipsdist = True
deps =
    {[testenv]deps}
    pytype
commands =
    pytype -d import-error .

[testenv:bandit]
skipsdist = True
deps =
    {[testenv]deps}
    bandit
commands =
    bandit srt.py

[testenv:windows]
basepython = {env:PYTHON:}\python.exe

[tox]
envlist = system

[testenv]
basepython = python
deps =
    -rtests/requirements.txt
    -rsrt_tools/tests/requirements.txt
commands =
    nosetests -q

[testenv:system]

[testenv:coverage]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps =
    {[testenv]deps}
    coveralls
commands =
    coverage erase
    nosetests -v --with-coverage --cover-branches --cover-package=srt
    coveralls

[testenv:pylint]
skipsdist = True
deps =
    {[testenv]deps}
    pylint
commands =
    pylint srt.py

[testenv:black]
skipsdist = True
whitelist_externals = sh
deps =
    black
commands =
    black --check .
    sh -c 'exec black --check srt_tools/srt*'

[testenv:pytype]
skipsdist = True
deps =
    {[testenv]deps}
    pytype
commands =
    pytype -d import-error .

[testenv:bandit]
skipsdist = True
deps =
    {[testenv]deps}
    bandit
commands =
    bandit srt.py

[testenv:windows]
basepython = {env:PYTHON:}\python.exe

Revert "coveralls: Temporarily disable due to 500s"
Revert "coveralls: Temporarily disable due to 500s"

This reverts commit 1f635dd9c5420c399a0359c13cd7a50e8919813c.
