-
-
Notifications
You must be signed in to change notification settings - Fork 366
/
tox.ini
79 lines (73 loc) · 1.31 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[tox]
envlist =
py{37,38,39,310}-dj32
py{38,39,310}-dj{40}
py{38,39,310,311}-dj{41}
py{38,39,310,311}-dj{42}
py{310,311,312}-dj{50}
py{310,311,312}-dj{51}
py{310,311,312,313}-dj{main}
flake8
isort
mypy
[gh-actions]
python =
3.7: py37
3.8: py38, flake8, isort, mypy
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.13: py313
[testenv]
deps =
time-machine==2.4.1
-rrequirements-test.txt
dj32: Django==3.2.*
dj40: Django==4.0.*
dj41: Django==4.1.*
dj42: Django==4.2.*
dj50: Django==5.0.*
dj51: Django==5.1.*
djmain: https://github.com/django/django/archive/main.tar.gz
ignore_outcome =
djmain: True
ignore_errors =
djmain: True
passenv =
CI
FORCE_COLOR
GITHUB_*
POSTGRES_*
usedevelop = True
commands =
python -m pytest {posargs}
[testenv:flake8]
basepython =
python3.8
deps =
flake8
skip_install = True
commands =
flake8 model_utils tests
[flake8]
ignore =
E731
W503
E402
E501
[testenv:isort]
basepython = python3.8
deps = isort
commands =
isort model_utils tests setup.py --check-only --diff
skip_install = True
[testenv:mypy]
basepython = python3.8
deps =
time-machine==2.8.2
-r requirements-mypy.txt
set_env =
SQLITE=1
commands =
mypy model_utils tests