django-axes/pyproject.toml
2026-02-11 22:14:31 +02:00

60 lines
1.2 KiB
TOML

[build-system]
requires = ["setuptools>=30.3.0", "wheel", "setuptools_scm"]
[tool.pytest.ini_options]
testpaths = "tests"
addopts = "--cov axes --cov-append --cov-branch --cov-report term-missing --cov-report=xml"
DJANGO_SETTINGS_MODULE = "tests.settings"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist =
py{310,311,312}-dj42
py{310,311,312,313}-dj52
py{312,313,314}-dj60
py314-djmain
py314-djqa
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312
3.13: py313
3.14: py314
[gh-actions:env]
DJANGO =
4.2: dj42
5.2: dj52
6.0: dj60
main: djmain
qa: djqa
# Normal test environment runs pytest which orchestrates other tools
[testenv]
deps =
-r requirements.txt
dj42: django>=4.2,<4.3
dj52: django>=5.2,<5.3
dj60: django>=6.0,<6.1
djmain: https://github.com/django/django/archive/main.tar.gz
usedevelop = true
commands = pytest
setenv =
PYTHONDONTWRITEBYTECODE=1
# Django development version is allowed to fail the test matrix
ignore_outcome =
djmain: True
ignore_errors =
djmain: True
# QA runs type checks, linting, and code formatting checks
[testenv:py314-djqa]
deps = -r requirements.txt
commands =
mypy axes
prospector axes
black -t py314 --check --diff axes
"""