-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathtox.ini
47 lines (42 loc) · 921 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
41
42
43
44
45
46
47
[tox]
envlist =
py{37,38,39,310}-django32
py{38,39,310}-django40
py{38,39,310,311,312}-django41
py{38,39,310,311,312}-django42
py{310,311,312}-django50
lint
coverage
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv]
allowlist_externals = ./manage.py
commands = ./manage.py test --no-input {posargs}
extras = test
pip_pre = true
deps =
django22: django>=2.2,<2.3
django32: django>=3.2,<3.3
django40: django>=4.0,<4.1
django41: django>=4.1,<4.2
django42: django>=4.2,<4.3
django50: django>=5.0,<5.1
[testenv:lint]
basepython = python3.11
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:coverage]
commands =
coverage run manage.py test --no-input {posargs}
coverage xml -i
extras = test
pip_pre = true
[flake8]
max-line-length=88
ignore=E203,W503