@@ -4,52 +4,34 @@ DJANGO_SETTINGS_MODULE = tests.settings
44
55[tox]
66envlist =
7- py{37,38}-dj{22}-drf{38,39,310,311}-{pytest,mypy}
8- py{37,38}-dj{30}-drf{310,311}-{pytest,mypy}
9- py{37,38,39,310,311}-dj{31,32}-drf{311,312,313,314}-{pytest,mypy}
10- py{38,39,310,311}-dj{40,41}-drf{313,314}-{pytest,mypy}
11- py{38,39,310,311}-dj{42}-drf{314}-{pytest,mypy}
7+ py{38,39,310,311,312}-dj42-drf{314,315}-pytest
8+ py{310,311,312}-dj50-drf{314,315}-pytest
9+ py312-dj50-drf315-mypy
1210skip_missing_interpreters = true
1311
1412[gh-actions]
1513python =
16- 3.7: py37
1714 3.8: py38
1815 3.9: py39
1916 3.10: py310
2017 3.11: py311
18+ 3.12: py312
2119django =
22- 2.2: dj22
23- 3.0: dj30
24- 3.1: dj31
25- 3.2: dj32
26- 4.0: dj40
27- 4.1: dj41
2820 4.2: dj42
21+ 5.0: dj50
2922
3023[testenv]
3124setenv =
3225 PYTHONDONTWRITEBYTECODE =1
3326 PYTHONWARNINGS =once
3427deps =
35- dj22: Django>=2.2,<2.3
36- dj30: Django>=3.0,<3.1
37- dj31: Django>=3.1,<3.2
38- dj32: Django>=3.2a1,<4.0
39- dj40: Django>=4.0,<4.1
40- dj41: Django>=4.1,<4.2
4128 dj42: Django>=4.2,<5.0
42- drf38: djangorestframework>=3.8.0,<3.9
43- drf39: djangorestframework>=3.9.0,<3.10
44- drf310: djangorestframework>=3.10.0,<3.11
45- drf311: djangorestframework>=3.11,<3.12
46- drf312: djangorestframework>=3.12,<3.13
47- drf313: djangorestframework>=3.13,<3.14
29+ dj50: Django>=5.0,<5.1
4830 drf314: djangorestframework>=3.14,<3.15
31+ drf315: djangorestframework>=3.15,<3.16
4932 pytest: -rrequirements.txt
50- mypy: git+https://github.com/typeddjango/djangorestframework-stubs.git@946c7d60aaecdc9ef307f5e1f8eb55f7083ffb16# egg=djangorestframework-stubs
51- mypy: djangorestframework-stubs
33+ mypy: djangorestframework-stubs[compatible-mypy]>=3.15,<3.16
5234commands =
5335 pytest: pytest --cov drf_writable_nested --cov-report =xml
54- mypy: mypy example
55- mypy: mypy .
36+ mypy: mypy --show-traceback example
37+ mypy: mypy --show-traceback .
0 commit comments