[tox]
envlist =
    lint
    py36
    py37
    py38
    py39
    pypy3
minversion = 3.14.2
requires =
    # https://github.com/tox-dev/tox/issues/765
    virtualenv >= 16.7.9
    pip >= 19.3.1

[testenv]
passenv =
    LC_ALL
    LANG
    HOME
commands =
    pip install -e .
    pytest --cov=cookiecutter --cov-report=term {posargs:tests}
    cov-report: coverage html
    cov-report: coverage xml
deps = -rtest_requirements.txt
skip_install = true

[testenv:lint]
commands =
    python -m pre_commit run {posargs:--all}
deps = pre-commit>=1.20.0
skip_install = true
usedevelop = false

[testenv:docs]
passenv =
    LC_ALL
    LANG
    HOME
commands =
    pip install -e .
    pip install -r test_requirements.txt
    pip install -r docs/requirements.txt
    make docs
whitelist_externals = make
deps = -rtest_requirements.txt
skip_install = true

[tox]
envlist =
    lint
    py36
    py37
    py38
    py39
    pypy3
minversion = 3.14.2
requires =
    # https://github.com/tox-dev/tox/issues/765
    virtualenv >= 16.7.9
    pip >= 19.3.1

[testenv]
passenv =
    LC_ALL
    LANG
    HOME
commands =
    pip install -e .
    pytest --cov=cookiecutter --cov-report=term --cov-fail-under=100 {posargs:tests}
    cov-report: coverage html
    cov-report: coverage xml
deps = -rtest_requirements.txt
skip_install = true

[testenv:lint]
commands =
    python -m pre_commit run {posargs:--all}
deps = pre-commit>=1.20.0
skip_install = true
usedevelop = false

[testenv:docs]
passenv =
    LC_ALL
    LANG
    HOME
commands =
    pip install -e .
    pip install -r test_requirements.txt
    pip install -r docs/requirements.txt
    make docs
whitelist_externals = make
deps = -rtest_requirements.txt
skip_install = true

Add fail under 100% coverage
Add fail under 100% coverage
