-
Notifications
You must be signed in to change notification settings - Fork 31
/
tox.ini
51 lines (46 loc) · 1.15 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
[tox]
envlist =
dj20-py{34,35,36,37}
dj21-py{35,36,37}
dj22-py{35,36,37,38,39}
dj30-py{36,37,38,39}
dj31-py{36,37,38,39}
dj32-py{36,37,38,39,310}
dj40-py{38,39,310}
dj41-py{38,39,310,311}
dj42-py{38,39,310,311,312}
flake8
migrations
skip_missing_interpreters=True
[flake8]
max-line-length = 120
[testenv]
deps =
pytest-django==4.5.0
pytest-lazy-fixture==0.6.3
dj111: Django>=1.11,<2.0
dj20: Django>=2.0,<2.1
dj21: Django>=2.1,<2.2
dj22: Django>=2.2,<3.0
dj30: Django>=3.0,<3.1
dj31: Django>=3.1,<3.2
dj32: Django>=3.2,<4.0
dj40: Django>=4.0,<4.1
dj41: Django>=4.1,<4.2
dj42: Django>=4.2,<5
py34,py35,py36,py37,py38: pytest==6.1.2
py39,py310,py311,py312: pytest==7.4.3
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}
commands =
python tests/manage.py migrate
pytest {posargs:tests}
[testenv:migrations]
basepython = python3.11
commands = python tests/manage.py makemigrations testapp
[testenv:flake8]
basepython = python3.11
deps =
flake8==3.9.0
commands =
flake8 . --exclude=venv/,.tox/