-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
139 lines (128 loc) · 3.34 KB
/
pyproject.toml
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
[project]
name = "adit"
description = "ADIT (Automated DICOM Transfer) is a swiss army knife to exchange DICOM data between various systems by using a convenient web frontend."
authors = [{ name = "Kai Schlamp" }]
license = "AGPL-3.0-or-later"
readme = "README.md"
requires-python = ">=3.12,<4.0"
dynamic = ["version"]
dependencies = [
"adit-radis-shared @ git+https://github.com/openradx/adit-radis-shared.git@0.14.0",
"adrf",
"aiofiles",
"asyncinotify",
"channels",
"crispy-bootstrap5",
"cryptography",
"daphne",
"dicognito<0.18.0",
"dicomweb-client",
"Django",
"django-crispy-forms",
"django-dbbackup",
"django-extensions",
"django-filter",
"django-htmx",
"django-loginas",
"django-pglock",
"django-registration-redux",
"django-revproxy",
"django-tables2",
"djangorestframework",
"environs[django]",
"humanize",
"janus",
"Markdown",
"openpyxl",
"pandas",
"pebble",
"procrastinate[django]",
"psycopg[binary]",
"pyarrow",
"pydicom<3.0.0",
"pynetdicom",
"Twisted[tls,http2]",
"wait-for-it",
"watchfiles",
"whitenoise",
]
[dependency-groups]
dev = [
"debugpy",
"django-browser-reload",
"django-debug-permissions",
"django-debug-toolbar",
"django-stubs",
"django-test-migrations",
"djangorestframework-stubs",
"djlint",
"factory-boy<=3.3.2",
"Faker",
"ipykernel",
"ipython",
"nest-asyncio",
"pyright",
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-django",
"pytest-mock",
"pytest-only",
"pytest-order",
"pytest-picked",
"pytest-playwright",
"pytest-timeout",
"pytest-watch",
"python-dotenv",
"pywatchman",
"requests",
"ruff",
"time-machine",
"typer",
"vermin",
]
[tool.pyright]
ignore = ["**/migrations", "**/*.ipynb"]
typeCheckingMode = "basic"
reportUnnecessaryTypeIgnoreComment = true
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "adit.settings.development"
python_files = ["tests.py", "test_*.py", "*_tests.py"]
testpaths = ["adit/**/tests"]
log_cli = 0
log_cli_level = "INFO"
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
markers = ["acceptance: mark a test as an acceptance test."]
filterwarnings = [
# We already fixed this, so we only need to remove this ignore with next major version of factory boy
"ignore:.*Factory._after_postgeneration will stop saving the instance:DeprecationWarning",
"ignore:'cgi' is deprecated:DeprecationWarning",
'ignore:.*use of fork\(\) may lead to deadlocks.*:DeprecationWarning',
'ignore:.*Use timezone-aware objects to represent datetimes in UTC.*:DeprecationWarning',
]
timeout = 60
[tool.coverage.run]
branch = true
source = ["adit"]
[tool.coverage.report]
skip_empty = true
show_missing = true
[tool.ruff]
target-version = "py312"
exclude = ["migrations", "notebooks"]
line-length = 100
lint.select = ["E", "F", "I", "DJ"]
[tool.djlint]
profile = "django"
max_line_length = 120
ignore = "H021,H030,H031,T002"
[build-system]
requires = ["hatchling", "uv-dynamic-versioning"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "uv-dynamic-versioning"
[tool.hatch.metadata]
allow-direct-references = true
[tool.uv-dynamic-versioning]
pattern = "default-unprefixed"