-
Notifications
You must be signed in to change notification settings - Fork 80
/
tox.ini
81 lines (70 loc) · 1.35 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
[tox]
envlist =
flake8
py{311,312}-dj{41}-wt{41,50,51,52}
[gh-actions]
python =
"3.11": py311
"3.12": py312
[testenv]
deps =
coverage
mock
dj41: Django>=4.1,<4.2
wt41: wagtail>=4.1,<4.2
wt50: wagtail>=5.0,<5.1
wt51: wagtail>=5.1,<5.2
wt52: wagtail>=5.2,<5.3
commands =
coverage run manage.py test
basepython =
py311: python3.11
py312: python3.12
setenv =
DJANGO_SETTINGS_MODULE=tests.settings
PYTHONPATH={toxinidir}
TOX_ENV_NAME={envname}
passenv = TOX_*
[testenv:wagtaildev]
basepython = python3.11
install_command = pip install -e ".[test]" -U {opts} {packages}
deps =
git+https://github.com/wagtail/wagtail.git@master
coverage
mock
django>=3.2
commands =
coverage run manage.py test
ignore_errors = True
[testenv:flake8]
basepython = python3.11
deps = flake8
commands = flake8 wagtailstreamforms
[flake8]
ignore = F401,W503
exclude =
.tox,
.git,
__pycache__,
*/migrations/*,
example/*,
tests/*,
*.pyc,
*.egg-info
max-line-length = 120
[testenv:coverage-report]
basepython = python3.11
deps = coverage[toml]
skip_install = true
commands =
coverage combine
coverage xml
coverage report
[testenv:format]
basepython = python3.11
deps =
isort
black
skip_install = true
commands =
black --check setup.py wagtailstreamforms/ tests/