-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtox.ini
More file actions
55 lines (50 loc) · 1.05 KB
/
tox.ini
File metadata and controls
55 lines (50 loc) · 1.05 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
[tox]
skipsdist = True
envlist =
ruff
pylint
py{312,313}-django{52,60}
[testenv]
deps =
django52: Django==5.2
django60: Django==6.0
channels
daphne
django-extensions
django-model-utils
pytest
pytest-clarity
pytest-django
pytest-asyncio
pytest-cov
factory-boy
commands =
pytest --cov --cov-report=xml
setenv =
PYTHONPATH = {toxinidir}:{env:PYTHONPATH:}
[testenv:ruff]
# Empty list to not install all deps from base testenv
deps =
skip_install = true
allowlist_externals = uv
commands_pre =
uv sync --all-extras
commands =
uv run ruff check .
uv run ruff format --check .
[testenv:pylint]
# Empty list to not install all deps from base testenv
deps =
skip_install = true
allowlist_externals = uv
commands_pre =
uv sync --all-extras
commands = uv run pylint --django-settings-module=tests.settings django_admin_shellx tests
[pytest]
addopts = --ds=tests.settings --reuse-db -ra
testpaths = tests
norecursedirs = .git */migrations/* .venv
omit =
./.venv/*
*/migrations/*
*/apps.py