forked from wagtail/wagtail-factories
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
40 lines (37 loc) · 868 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
34
35
36
37
38
39
40
[tox]
minversion = 3.14.6
envlist =
py{37,38,39,310}-django32-wagtail{215,216}-factoryboy32
py{38,39,310}-django40-wagtail{216,30}-factoryboy32
coverage-report
lint
[testenv]
commands = coverage run --parallel -m pytest {posargs}
extras = test
passenv =
TEST_DB_NAME
TEST_DB_USER
TEST_DB_PASSWORD
TEST_DB_HOST
TEST_DB_PORT
deps =
django32: django>=3.2,<3.3
django40: django>=4,<5
wagtail215: wagtail>=2.15,<2.16
wagtail216: wagtail>=2.16,<3.0
wagtail30: wagtail>=3.0,<4.0
factoryboy32: factory-boy>=3.2,<3.3
[testenv:coverage-report]
basepython = python3.7
deps = coverage
pip_pre = true
skip_install = true
commands =
coverage combine
coverage report
[testenv:lint]
basepython = python3.7
deps = flake8
commands =
flake8 src tests setup.py
isort --recursive --check-only --diff src tests