-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
34 lines (31 loc) · 767 Bytes
/
tox.ini
File metadata and controls
34 lines (31 loc) · 767 Bytes
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
# See https://docs.wagtail.io/en/latest/releases/upgrading.html#compatible-django-python-versions
[tox]
envlist =
py{3.8,3.9,3.10}-django{3.2,4.0}-wagtail{2.16,3.0}
[testenv]
commands = coverage run --parallel -m pytest {posargs}
basepython =
py3.8: python3.8
py3.9: python3.9
py3.10: python3.10
deps =
django3.2: Django>=3.2,<3.3
django4.0: Django>=4.0,<4.1
wagtail2.16: wagtail>=2.16,<2.17
wagtail3.0: wagtail>=3.0,<3.1
extras = test
[testenv:coverage-report]
deps = coverage[toml]
skip_install = true
commands =
coverage combine
coverage xml
coverage report -m
[testenv:format]
deps =
black
isort[toml]
skip_install = true
commands =
isort --recursive --check-only src tests
black --check src/ tests/