forked from django-guardian/django-guardian
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
58 lines (48 loc) · 1.8 KB
/
tox.ini
File metadata and controls
58 lines (48 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[tox]
envlist =
core-py{39,310,311}-{django42},
core-py{310,311,312}-{django50},
core-py{310,311,312,313}-{django51,django52},
core-py{312,313}-{djangomain},
{example,examplegroup}-{py313}-{django51},
docs-{py313}-{django51},
type-py{39,310,311,312,313}
[gh]
python =
3.9 = core-py39-{django42}, type-py39
3.10 = core-py310-{django42,django50,django51,django52}, type-py310
3.11 = core-py311-{django42,django50,django51,django52}, type-py311
3.12 = core-py312-{django50,django51,django52,djangomain}, type-py312
3.13 = core-py313-{django51,django52,djangomain}, examplegroup-py313-django51, docs-py313-django51, type-py313
[testenv]
recreate = true
allowlist_externals = pytest,mkdocs
pass_env = ["DATABASE_URL", "DIFF_AGAINST", "PYTEST_*", "TOX_GH_MAJOR_MINOR"]
basepython =
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
py313: python3.13
changedir =
example: example_project
examplegroup: example_project_custom_group
commands =
django42: python {toxinidir}/manage.py makemigrations --check --dry-run
django50: python {toxinidir}/manage.py makemigrations --check --dry-run
django51: python {toxinidir}/manage.py makemigrations --check --dry-run
django52: python {toxinidir}/manage.py makemigrations --check --dry-run
djangomain: python {toxinidir}/manage.py makemigrations --check --dry-run
type: mypy ./guardian
core: pytest --cov=guardian --cov-report=xml
docs: mkdocs build
example: python manage.py test
examplegroup: python manage.py test
dependency_groups =
{env:DEPENDENCY_GROUP:dev}
deps =
django42: django>=4.2,<4.3
django50: django>=5.0,<5.1
django51: django>=5.1,<5.2
django52: django>=5.2,<5.3
djangomain: https://github.com/django/django/archive/main.tar.gz