-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathtox.ini
More file actions
51 lines (45 loc) · 747 Bytes
/
tox.ini
File metadata and controls
51 lines (45 loc) · 747 Bytes
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
[tox]
min_version = 4.22
requires =
tox-uv
envlist =
lint
# type
test
check-migrations
[testenv]
runner = uv-venv-lock-runner
pass_env =
DJANGO_*
extras =
development
[testenv:lint]
package = skip
dependency_groups =
lint
commands =
ruff check
ruff format --check
[testenv:format]
package = skip
dependency_groups =
lint
commands =
ruff check --fix-only
ruff format
[testenv:type]
dependency_groups =
type
test
commands =
mypy {posargs}
[testenv:test]
dependency_groups =
test
commands =
pytest {posargs}
[testenv:check-migrations]
set_env =
DJANGO_SETTINGS_MODULE = dandiapi.settings.testing
commands =
{envpython} ./manage.py makemigrations --check --dry-run