-
Notifications
You must be signed in to change notification settings - Fork 9
/
tox.ini
53 lines (44 loc) · 1.07 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
[tox]
skip_missing_interpreters = True
skipsdist = True
envlist =
py{38,39,310,311}-dj{32,40,41,42}-wt{42,50,51,52}
py{310,311}-dj{50}-wt{52}
isort,flake8,docs
[testenv]
usedevelop = True
install_command = pip install -e ".[testing]" -U {opts} {packages}
commands = py.test --cov=wagtailformblocks --cov-report=xml tests/
basepython =
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
deps =
dj32: django~=3.2
dj40: django~=4.0
dj41: django~=4.1
dj50: django~=5.0
wt42: wagtail~=4.2
wt50: wagtail~=5.0
wt51: wagtail~=5.1
wt52: wagtail~=5.2
setenv =
DJANGO_SETTINGS_MODULE=tests.app.settings
passenv =
DATABASE_HOST
DATABASE_USER
DATABASE_PASS
[testenv:isort]
deps = isort
basepython = python3
commands = isort --diff --check-only wagtailformblocks tests --skip migrations
[testenv:docs]
whitelist_externals = make
basepython = python3
deps = -e.[docs]
commands = make -C docs/ SPHINXOPTS=-W clean html
[testenv:flake8]
deps=flake8
basepython=python3
commands=flake8 wagtailformblocks/ tests/