-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtox.ini
45 lines (39 loc) · 1.11 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
[tox]
envlist =
py{38,39,310,311}-dj42-wt{52,60,61}
py{310,311,312}-dj50-wt{52,60,61}
lint
[flake8]
# E203: Whitespace before ':'. Black should take care of this.
# E501: Ignore line length rules. Black should take care of this.
# W503: Ignore line break before binary operator which is due to change anyway (https://www.flake8rules.com/rules/W503.html)
ignore=E203,E501,W503
exclude=.git,__pycache__,dist,.tox,venv,*/migrations/*
[pytest]
DJANGO_SETTINGS_MODULE = testapp.settings.dev
pythonpath = testapp
[testenv:lint]
extras = linting
commands = flake8 .
[testenv]
install_command = pip install {opts} {packages}
extras = testing
basepython = py312: python3.12
deps =
dj42: Django>=4.2,<4.3
dj50: Django>=5.0,<5.1
wt52: wagtail>=5.2,<5.3
wt60: wagtail>=6.0,<6.1
wt61: wagtail>=6.1,<6.2
commands =
python testapp/manage.py makemigrations
python testapp/manage.py migrate
python testapp/manage.py loaddata testapp/testdata_wt3.json # Make sure the testapp data is installable
pytest .
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312