toddlers/tox.ini
Nils Philippsen 9b37c789ab Test with Python 3.12
Signed-off-by: Nils Philippsen <nils@redhat.com>
2024-06-10 17:30:10 +02:00

41 lines
752 B
INI

[tox]
envlist = black,mypy,flake8,py3{9,10,11,12}
# If the user is missing an interpreter, don't fail
skip_missing_interpreters = True
skipsdist = True
[testenv]
deps =
-r requirements.txt
-r test-requirements.txt
sitepackages = True
setenv =
PYTHONPATH={toxinidir}
commands =
pytest {posargs}
[testenv:black]
deps =
black
sitepackages = False
commands =
black --check --diff .
[testenv:mypy]
basepython = python3.12
allowlist_externals =
mypy
deps =
{[testenv]deps}
mypy
setenv =
{[testenv]setenv}
commands = mypy --config-file {toxinidir}/mypy.cfg toddlers tests
[testenv:flake8]
deps =
flake8
flake8-import-order
sitepackages = False
commands =
flake8 --ignore=W503 toddlers/ tests/ {posargs}