-
Notifications
You must be signed in to change notification settings - Fork 250
/
tox.ini
40 lines (36 loc) · 966 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]
min_version = 4.4
envlist =
{py38,py39,py310,py311,py312}-django420-{end2end,unittests}
{py310,py311,py312}-django{500,510}-{end2end,unittests}
py39-lint
[gh-actions]
python =
3.8: py38
3.9: py39, py39-lint
3.10: py310
3.11: py311
3.12: py312
[testenv]
deps =
django420: Django>=4.2,<4.3
django500: Django>=5.0,<5.1
django510: Django>=5.1,<5.2
coverage
-rrequirements.txt
skip_missing_interpreters=true
changedir =
end2end: {toxinidir}/django_prometheus/tests/end2end
setenv =
end2end: PYTHONPATH = {toxinidir}
end2end: DJANGO_SETTINGS_MODULE=testapp.settings
commands =
end2end: coverage run --source=django_prometheus -m pytest testapp/
unittests: coverage run --source=django_prometheus setup.py test
unittests: python setup.py sdist bdist_wheel
[testenv:py39-lint]
deps =
ruff==0.8.2
commands =
ruff format --check django_prometheus/
ruff check django_prometheus/