-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtox.ini
More file actions
54 lines (48 loc) · 807 Bytes
/
tox.ini
File metadata and controls
54 lines (48 loc) · 807 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
52
53
54
[tox]
min_version = 4.22
requires =
tox-uv
env_list =
lint
# type
test
check-migrations
[testenv]
runner = uv-venv-lock-runner
pass_env =
DJANGO_*
RUFF_CACHE_DIR
MYPY_CACHE_DIR
extras =
development
tasks
[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:-m 'not slow'}
[testenv:check-migrations]
set_env =
DJANGO_SETTINGS_MODULE = uvdat.settings.testing
commands =
{envpython} ./manage.py makemigrations --check --dry-run