[tox]
minversion = 1.6.0
envlist = coala,docs,pre-commit
skipsdist = true

[testenv:coala]
basepython = python3
deps =
    coala==0.11.0
    coala-bears==0.11.0
    detox~=0.18
    pygments~=2.3.1
    requests~=2.21.0
commands =
    coala --non-interactive

[testenv:docs]
deps = -rdocs/requirements.txt
commands =
    sphinx-build -W -n -b html -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/html

[testenv:pre-commit]
deps = pre-commit
commands =
    pre-commit install --hook-type commit-msg
    pre-commit run --all-files

[tox]
minversion = 1.6.0
envlist = coala,docs,pre-commit
skipsdist = true

[testenv:coala]
basepython = python3
deps =
    coala==0.11.0
    coala-bears==0.11.0
    detox~=0.18
    pygments~=2.3.1
    requests~=2.21.0
commands =
    coala --non-interactive

[testenv:docs]
deps = -rdocs/requirements.txt
commands =
    sphinx-build -W -n -b html -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/html

[testenv:pre-commit]
basepython = python3
deps = pre-commit
commands =
    pre-commit install --hook-type commit-msg
    pre-commit run --all-files

Use Python 3 for pre-commit env
Use Python 3 for pre-commit env

Rather than fighting the inevitable of Python 2 EOL. Use Python 3
as the base Python system for the pre-commit check.

Change-Id: I2c2453fcf6dfc2e178549f2a1ff5b9c2d502f2e5
Signed-off-by: Thanh Ha <ddef40ffcf330e0c1e91b15bb1b0d4953f1680d8@gmail.com>
