-
Notifications
You must be signed in to change notification settings - Fork 11
/
tox.ini
85 lines (79 loc) · 1.86 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
[tox]
# Don't use "min_version", to ensure Tox 3 respects this
minversion = 4
envlist =
lint,
type,
test,
check-migrations,
[testenv:lint]
package = skip
ignore_errors = True
deps =
codespell~=2.0
ruff~=0.6.2
commands =
ruff --version
ruff check
ruff format --check
codespell .
[testenv:format]
package = skip
deps =
ruff~=0.6.2
commands =
ruff --version
ruff check --fix-only
ruff format
[testenv:type]
deps =
mypy
extras =
dev
commands =
mypy {posargs:dandiapi/}
[testenv:test]
passenv =
DJANGO_CELERY_BROKER_URL
DJANGO_DATABASE_URL
DJANGO_MINIO_STORAGE_ACCESS_KEY
DJANGO_MINIO_STORAGE_ENDPOINT
DJANGO_MINIO_STORAGE_SECRET_KEY
DJANGO_DANDI_SCHEMA_VERSION
DJANGO_DANDI_WEB_APP_URL
DJANGO_DANDI_API_URL
DJANGO_DANDI_JUPYTERHUB_URL
DJANGO_DANDI_DEV_EMAIL
DANDI_ALLOW_LOCALHOST_URLS
extras =
dev
test
commands =
pytest {posargs}
[testenv:check-migrations]
setenv =
DJANGO_CONFIGURATION = TestingConfiguration
passenv =
DJANGO_CELERY_BROKER_URL
DJANGO_DATABASE_URL
DJANGO_MINIO_STORAGE_ACCESS_KEY
DJANGO_MINIO_STORAGE_ENDPOINT
DJANGO_MINIO_STORAGE_SECRET_KEY
DJANGO_DANDI_SCHEMA_VERSION
DJANGO_DANDI_WEB_APP_URL
DJANGO_DANDI_API_URL
DJANGO_DANDI_JUPYTERHUB_URL
DJANGO_DANDI_DEV_EMAIL
extras =
dev
commands =
{envpython} ./manage.py makemigrations --check --dry-run
[pytest]
DJANGO_SETTINGS_MODULE = dandiapi.settings
DJANGO_CONFIGURATION = TestingConfiguration
addopts = --strict-markers --showlocals --verbose
filterwarnings =
# https://github.com/jazzband/django-configurations/issues/190
ignore:the imp module is deprecated in favour of importlib:DeprecationWarning:configurations
# https://github.com/celery/kombu/issues/1339
ignore:SelectableGroups dict interface is deprecated:DeprecationWarning:kombu