-
Notifications
You must be signed in to change notification settings - Fork 159
/
tox.ini
50 lines (43 loc) · 1.11 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
[tox]
envlist =
py{38,39}-dj{42}-{wt52,60,61,62}
py{310,311,312}-dj{42,50}-wt{52,60,61,62}
flake8
black
[gh-actions]
python =
3.8: py38-dj42-wt{52,60,61,62}
3.9: py39-dj42-wt{52,60,61,62}
3.10: py310-dj{42,50}-wt{52,60,61,62}
3.11: py311-dj{42,50}-wt{52,60,61,62}
3.12: py312-dj{42,50}-wt{52,60,61,62}, flake8, black
[flake8]
max-line-length = 120
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}
DJANGO_SETTINGS_MODULE = tests.testapp.settings
commands =
pytest --create-db --no-migrations
deps =
pytest==8.0.0
pytest-django==4.8.0
requests==2.32.0
model-bakery==1.17.0
ipdb==0.13.13
django-el-pagination==4.0
tapioca-disqus==0.1.2
dj42: Django>=4.2,<4.3
dj50: Django>=5.0,<5.1
wt52: wagtail>=5.2,<5.3
wt60: wagtail>=6.0,<6.1
wt61: wagtail>=6.1,<6.2
wt62: wagtail>=6.2,<6.3
[testenv:flake8]
basepython = python3.12
deps = flake8==7.0.0
commands = flake8 puput tests --exclude=migrations
[testenv:black]
basepython = python3.12
deps = black==24.1.1
commands = black puput tests -l 120 --check --extend-exclude=/migrations/