forked from labd/wagtailstreamforms
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
77 lines (66 loc) · 1.26 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
[tox]
envlist =
flake8
py{312}-dj{51}-wt{60,63}
[gh-actions]
python =
"3.12": py312
[testenv]
deps =
coverage
mock
dj51: Django>=5.1,<5.2
wt60: wagtail>=6.0,<6.1
wt63: wagtail>=6.3,<6.4
commands =
coverage run --parallel-mode manage.py test
basepython =
py312: python3.12
setenv =
DJANGO_SETTINGS_MODULE=tests.settings
PYTHONPATH={toxinidir}
TOX_ENV_NAME={envname}
passenv = TOX_*
[testenv:wagtaildev]
basepython = python3.12
install_command = pip install -e ".[test]" -U {opts} {packages}
deps =
git+https://github.com/wagtail/wagtail.git@master
coverage
mock
django>=5.1
commands =
coverage run manage.py test
ignore_errors = True
[testenv:flake8]
basepython = python3.12
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.12
deps = coverage[toml]
skip_install = true
commands =
coverage combine
coverage xml
coverage report
[testenv:format]
basepython = python3.12
deps =
isort
black
skip_install = true
commands =
black --check setup.py wagtailstreamforms/ tests/