-
-
Notifications
You must be signed in to change notification settings - Fork 191
/
tox.ini
63 lines (57 loc) · 1.05 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
[tox]
envlist =
py312-djdocs
py312-djqa
py{38,39,310,py38}-dj40
py{38,39,310,311,py38}-dj41
py{38,39,310,311,312,py38}-dj42
py{310,311,312}-dj50
py{310,311,312,py38}-djmain
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
pypy-3.8: pypy38
[gh-actions:env]
DJANGO =
docs: djdocs
qa: djqa
4.0: dj40
4.1: dj41
4.2: dj42
5.0: dj50
main: djmain
[testenv]
usedevelop = true
setenv =
PYTHONDONTWRITEBYTECODE=1
deps =
-r requirements.txt
dj40: django>=4.0,<4.1
dj41: django>=4.1,<4.2
dj42: django>=4.2,<4.3
dj50: django>=5.0,<5.1
djmain: https://github.com/django/django/archive/main.tar.gz
commands =
pytest
[testenv:py310-djqa]
basepython = python3.10
ignore_errors = true
deps =
-r requirements.txt
commands =
flake8 recurrence
flake8 setup.py
flake8 tests
[testenv:py310-djdocs]
basepython = python3.10
changedir = docs
deps =
-r requirements.txt
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[flake8]
ignore = E122,E125,E129,E501,W503,W504