-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtox.ini
33 lines (24 loc) · 847 Bytes
/
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
[tox]
envlist = py{36,37,38,39}-wagtail{212,213}, lint
[flake8]
# E501: Ignore line length rules. Black should take care of this.
# W503: Ignore line break before binary operator which is due to change anyway (https://www.flake8rules.com/rules/W503.html)
ignore=E501,W503
exclude=.git,__pycache__,dist,.tox,venv,*/migrations/*
[pytest]
DJANGO_SETTINGS_MODULE = testapp.settings.dev
python_paths = testapp
[testenv:lint]
extras = linting
commands = flake8 .
[testenv]
install_command = pip install {opts} {packages}
extras = testing
deps =
wagtail212: Wagtail>=2.12,<2.13
wagtail213: Wagtail>=2.13,<2.14
commands =
python testapp/manage.py makemigrations --dry-run --check
pytest .
python testapp/manage.py migrate
python testapp/manage.py loaddata testapp/testdata.json # Make sure the testapp data is installable