31 lines
767 B
INI
31 lines
767 B
INI
[tox]
|
|
envlist = black,mypy,flake8,py3{11,12}
|
|
# If the user is missing an interpreter, don't fail
|
|
skip_missing_interpreters = True
|
|
skipsdist = True
|
|
isolated_build = true
|
|
|
|
[testenv]
|
|
passenv = HOME
|
|
sitepackages = false
|
|
skip_install = true
|
|
allowlist_externals =
|
|
poetry
|
|
commands_pre =
|
|
poetry install --all-extras
|
|
commands =
|
|
poetry run pytest -vv {posargs}
|
|
poetry run diff-cover --compare-branch origin/main --fail-under 100 coverage.xml
|
|
|
|
[testenv:black]
|
|
basepython = python3.12
|
|
commands =
|
|
poetry run black --check --diff .
|
|
|
|
[testenv:mypy]
|
|
basepython = python3.12
|
|
commands = poetry run mypy --config-file {toxinidir}/mypy.cfg toddlers tests
|
|
|
|
[testenv:flake8]
|
|
basepython = python3.12
|
|
commands = poetry run flake8 --ignore=W503 toddlers/ tests/ {posargs}
|