-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathtox.ini
97 lines (82 loc) · 1.94 KB
/
tox.ini
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
[tox]
envlist = py3{8,9,10,11,12}-django42
py3{12}-django50
py3{10,11,12,13}-django51
py3{12,13}-djdev
black
isort
flake8
docs
# Default testenv
[testenv]
passenv =
CI
USE_SELENIUM
deps =
-r{toxinidir}/tests/requirements.pip
django-42: Django>=4.2,<4.3
django-50: Django>=5.0,<5.1
django-51: Django>=5.1,<5.2
djdev: https://github.com/django/django/archive/master.tar.gz
commands =
{envpython} --version
{envpython} -Wd {envbindir}/coverage run --branch {toxinidir}/tests/manage.py test
coverage report -m
setenv =
DJANGO_SETTINGS_MODULE=project.settings
PYTHONPATH={toxinidir}
DJANGO_LIVE_TEST_SERVER_ADDRESS=localhost:8000-8010,8080,9200-9300
DJANGO_TEST_PROCESSES=1
basepython =
py313: python3.13
py312: python3.12
py311: python3.11
py310: python3.10
py39: python3.9
py38: python3.8
[testenv:black]
basepython = python3
usedevelop = false
deps = black
changedir = {toxinidir}
commands = black --check --diff .
[testenv:flake8]
basepython = python3
usedevelop = false
deps = flake8 >= 3.7.0
changedir = {toxinidir}
commands = flake8 .
[testenv:isort]
basepython = python3
usedevelop = false
deps = isort >= 5.1.0
changedir = {toxinidir}
commands = isort --check-only --diff django tests scripts
###########################
# Run docs builder
###########################
[testenv:docs]
deps =
sphinx
sphinx_rtd_theme
changedir=doc
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees doc doc/_build/html
###########################
# Run docs linkcheck
###########################
[testenv:docs-linkcheck]
deps = {[testenv:docs]deps}
commands =
sphinx-build -b html -d {envtmpdir}/doctrees doc doc/_build/html
sphinx-build -b linkcheck doc doc/_build/html
[pep8]
exclude = migrations,.tox,doc,docs,tests,setup.py
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.13: py313