-
Notifications
You must be signed in to change notification settings - Fork 841
Expand file tree
/
Copy pathtox.ini
More file actions
127 lines (116 loc) · 2.31 KB
/
tox.ini
File metadata and controls
127 lines (116 loc) · 2.31 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
[tox]
envlist =
migrations,
migrate_swapped,
docs,
lint,
sphinxlint,
py{310,311,312}-dj42,
py{310,311,312,313}-dj50,
py{310,311,312,313}-dj51,
py{310,311,312,313,314}-dj52,
py{312,313,314}-dj60,
py{312,313,314}-djmain,
py314-dj42-multi-db,
[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.0: dj50
5.1: dj51
5.2: dj52
6.0: dj60
main: djmain
[testenv]
commands =
pytest {posargs}
coverage report
coverage xml
setenv =
DJANGO_SETTINGS_MODULE = tests.settings
PYTHONPATH = {toxinidir}
PYTHONWARNINGS = all
deps =
dj42: Django>=4.2,<4.3
dj50: Django>=5.0,<5.1
dj51: Django>=5.1,<5.2
dj52: Django>=5.2,<6.0
dj60: Django>=6.0,<6.1
djmain: https://github.com/django/django/archive/main.tar.gz
djangorestframework
oauthlib>=3.3.0
jwcrypto
coverage
pytest
pytest-cov
pytest-django
pytest-xdist
pytest-mock
requests
passenv =
PYTEST_ADDOPTS
[testenv:py{310,311,312,313,314}-djmain]
ignore_errors = true
ignore_outcome = true
[testenv:sphinxlint]
deps = sphinx-lint
skip_install = True
commands =
sphinx-lint docs/
[testenv:{docs,livedocs}]
basepython = python3.14
changedir = docs
allowlist_externals = make
commands =
docs: make html
livedocs: make livehtml
deps =
Jinja2<3.1
sphinx<3
oauthlib>=3.3.0
m2r>=0.2.1
mistune<2
sphinx-rtd-theme
livedocs: sphinx-autobuild
jwcrypto
django
[testenv:lint]
basepython = python3.14
deps = ruff>=0.6
skip_install = True
commands =
ruff format --check
ruff check
[testenv:migrations]
setenv =
DJANGO_SETTINGS_MODULE = tests.mig_settings
PYTHONPATH = {toxinidir}
PYTHONWARNINGS = all
commands = django-admin makemigrations --dry-run --check
[testenv:py314-dj42-multi-db]
setenv =
DJANGO_SETTINGS_MODULE = tests.multi_db_settings
PYTHONPATH = {toxinidir}
PYTHONWARNINGS = all
[testenv:migrate_swapped]
setenv =
DJANGO_SETTINGS_MODULE = tests.settings_swapped
PYTHONPATH = {toxinidir}
PYTHONWARNINGS = all
commands =
django-admin migrate
[testenv:build]
deps =
build
twine
allowlist_externals = rm
commands =
rm -rf dist
python -m build
twine check dist/*