-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtox.ini
54 lines (48 loc) · 1.24 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
[tox]
envlist =
py{310,311}-dj42-wagtail{52,61,62}
py{311,312}-dj{50}-wagtail{52,61,62}
py{311,312}-dj{51}-wagtail{61,62}
flake8
isort
black
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312
[testenv]
use_frozen_constraints = true
constrain_package_deps = true
usedevelop = True
setenv =
PYTHONPATH = {toxinidir}
DJANGO_SETTINGS_MODULE = wagtail_storages.tests.settings
deps =
dj42: Django>=4.2,<4.3
dj50: Django>=5.0,<5.1
dj51: Django>=5.1,<5.2
wagtail52: wagtail>=5.2,<5.3
wagtail60: wagtail>=6.0,<6.1
wagtail61: wagtail>=6.1,<6.2
wagtail62: wagtail>=6.2,<6.3
wagtailmain: git+https://github.com/wagtail/wagtail.git@main#egg=Wagtail
commands =
coverage run --source="{toxinidir}/wagtail_storages" -m django test wagtail_storages
django-admin check
django-admin makemigrations --check --noinput
coverage report -m --omit="{toxinidir}/wagtail_storages/tests/*" --fail-under=80
extras = testing
[testenv:black]
basepython = python3
commands =
black --check ./
[testenv:flake8]
basepython = python3
commands =
flake8 wagtail_storages
[testenv:isort]
basepython = python3
changedir = {toxinidir}
commands =
isort --check-only --diff wagtail_storages