forked from labd/wagtailstreamforms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
79 lines (68 loc) · 1.28 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
[tox]
envlist =
flake8
py{36}-dj{20}-wt{23}
py{36,37}-dj{21}-wt{24}
py{36,37,38}-dj{22}-wt{25,26,27,28,29}
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
[testenv]
deps =
coverage
mock
dj20: Django>=2,<2.1
dj21: Django>=2.1,<2.2
dj22: Django>=2.2,<2.3
wt23: wagtail>=2.3,<2.4
wt24: wagtail>=2.4,<2.5
wt25: wagtail>=2.5,<2.6
wt26: wagtail>=2.6,<2.7
wt27: wagtail>=2.7,<2.8
wt28: wagtail>=2.8,<2.9
wt29: wagtail>=2.9,<2.10
commands =
coverage run manage.py test
basepython =
py36: python3.6
py37: python3.7
py38: python3.8
setenv =
DJANGO_SETTINGS_MODULE=tests.settings
PYTHONPATH={toxinidir}
TOX_ENV_NAME={envname}
passenv = TOX_*
[testenv:flake8]
basepython = python3.7
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.7
deps = coverage[toml]
skip_install = true
commands =
coverage combine
coverage xml
coverage report
[testenv:format]
basepython = python3.7
deps =
isort
black
skip_install = true
commands =
black --check wagtailstreamforms/ tests/