-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
60 lines (54 loc) · 1.25 KB
/
tox.ini
File metadata and controls
60 lines (54 loc) · 1.25 KB
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
[tox]
envlist =
ruff
pylint
integration
py{312,313}-django{52,60}
[testenv]
# uv-venv-runner: uses uv pip install (fast) but reads deps= below, not the lockfile.
# This lets us override Django per factor while still getting uv's speed.
runner = uv-venv-runner
extras = celery,redis,http,postgres,channels,dev-logging
deps =
django52: Django==5.2.*
django60: Django==6.0.*
pytest
pytest-clarity
pytest-cov
pytest-django
pytest-mock
redis
requests
package = editable
commands =
pytest --cov=django_o11y --cov-report=xml --cov-report=term -m "not integration"
setenv =
PYTHONPATH = {toxinidir}:{env:PYTHONPATH:}
[testenv:ruff]
runner = uv-venv-lock-runner
extras = dev
package = skip
commands =
ruff check .
ruff format --check .
[testenv:pylint]
runner = uv-venv-lock-runner
extras = dev,all
package = editable
commands =
pylint --django-settings-module=tests.config.settings.test src/django_o11y tests
[testenv:integration]
runner = uv-venv-lock-runner
extras = dev,all
package = editable
commands =
pytest -m integration tests/integration/test_celery_e2e.py
[coverage:run]
branch = True
source = django_o11y
omit =
./.venv/*
*/migrations/*
*/apps.py
[coverage:report]
fail_under = 75