-
Notifications
You must be signed in to change notification settings - Fork 13
/
tox.ini
91 lines (82 loc) · 1.69 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
80
81
82
83
84
85
86
87
88
89
90
91
[tox]
minversion = 4.0
skip_missing_interpreters = true
envlist =
lint
coverage
python{310,311,312}-django50
toxworkdir = {env:TOX_WORKDIR:.tox}
[gh-actions]
python =
3.10: python310
3.11: python311
3.12: python312
[testenv]
runner = uv-venv-lock-runner
with_dev = true
dependency_groups =
dev
ci
setenv =
DJANGO_SETTINGS_MODULE=mregsite.settings
CI=True
passenv = MREG_*, GITHUB_*
deps =
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2.a1,<4.3
django50: Django>=5.0a1,<5.1
basepython =
python310: python3.10
python311: python3.11
python312: python3.12
python3
commands =
python --version
python -m django version
coverage run manage.py test
[testenv:lint]
description = Lint the project.
setenv =
DJANGO_SETTINGS_MODULE=mregsite.settings
CI=True
passenv = MREG_*, GITHUB_*
skip_install = true
deps = ruff
allowlist_externals = ruff
commands = ruff check .
[testenv:coverage]
runner = uv-venv-lock-runner
with_dev = true
dependency_groups =
dev
ci
description = Report the coverage of the project.
setenv =
DJANGO_SETTINGS_MODULE=mregsite.settings
CI=True
passenv = MREG_*, GITHUB_*
commands =
python --version
python -m django --version
coverage run manage.py test
coverage report -m
[coverage:report]
fail_under = 98
show_missing = true
exclude_also =
'pragma: no cover'
'def __repr__'
[coverage:run]
omit =
manage.py
*/migrations/*
# omit anything in a .local, venv/* directory anywhere
*/.local/*
venv/*
env/*
*/.virtualenvs/*
*/virtualenv/*
[coverage:html]
directory = coverage_html_report