-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
144 lines (132 loc) · 3.96 KB
/
pyproject.toml
File metadata and controls
144 lines (132 loc) · 3.96 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
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
140
141
142
143
144
[project]
name = "radis"
description = "RADIS (Radiology Report Archive and Discovery System) is an application to archive, query and collect radiology reports."
authors = [{ name = "Kai Schlamp" }]
license = "AGPL-3.0-or-later"
version = "0.0.0"
readme = "README.md"
requires-python = ">=3.12,<4.0"
dependencies = [
"adit-radis-shared @ git+https://github.com/openradx/adit-radis-shared.git@0.19.1",
"adrf>=0.1.9",
"aiofiles>=24.1.0",
"asyncinotify>=4.2.0",
"channels>=4.2.0",
"crispy-bootstrap5>=2024.10",
"cryptography>=44.0.1",
"daphne>=4.1.2",
"Django>=5.1.6",
"django-block-fragments>=0.1.1",
"django-cotton>=1.6.0",
"django-crispy-forms>=2.3",
"django-dbbackup>=4.2.1",
"django-extensions>=3.2.3",
"django-filter>=25.1",
"django-formtools>=2.5.1",
"django-htmx>=1.22.0",
"django-loginas>=0.3.11",
"django-markdownify>=0.9.5",
"django-registration-redux>=2.13",
"django-revproxy>=0.13.0",
"django-tables2>=2.7.5",
"djangorestframework>=3.15.2",
"environs[django]>=14.1.1",
"humanize>=4.12.1",
"Markdown>=3.7",
"openai>=1.64.0",
"openpyxl>=3.1.5",
"pandas>=2.2.3",
"procrastinate[django]>=3.0.2",
"psycopg[binary]>=3.2.5",
"pycountry>=24.6.1",
"pyparsing>=3.2.1",
"Twisted[tls,http2]>=24.11.0",
"wait-for-it>=2.3.0",
"watchfiles>=1.0.4",
"whitenoise>=6.9.0",
"xlsxwriter>=3.2.2",
]
[dependency-groups]
docs = ["mkdocs-material>=9.7.0", "mkdocs-minify-plugin>=0.8.0"]
dev = [
"debugpy>=1.8.12",
"django-browser-reload>=1.18.0",
"django-debug-permissions>=1.0.0",
"django-debug-toolbar>=5.0.1",
"django-stubs>=5.2.0",
"django-test-migrations>=1.4.0",
"djangorestframework-stubs>=3.15.3",
"djlint>=1.36.4",
"factory-boy>=3.3.0,<3.3.3",
"Faker>=36.1.1",
"ipykernel>=6.29.5",
"ipython>=8.32.0",
"nest-asyncio>=1.6.0",
"pydicom>=2.4.4",
"pyright>=1.1.402",
"pytest>=8.3.4",
"pytest-asyncio>=0.25.3",
"pytest-cov>=6.0.0",
"pytest-django>=4.10.0",
"pytest-mock>=3.14.0",
"pytest-order>=1.3.0",
"pytest-picked>=0.5.1",
"pytest-playwright>=0.7.0",
"pytest-timeout>=2.3.1",
"pytest-watch>=4.2.0",
"python-dotenv>=1.0.1",
"pywatchman>=2.0.0",
"requests>=2.32.3",
"ruff>=0.9.7",
"tiktoken>=0.9.0",
"time-machine>=2.16.0",
"typer>=0.19.2",
]
client = ["radis-client"]
[project.scripts]
cli = "cli:app"
[tool.uv]
default-groups = ["dev", "client", "docs"]
constraint-dependencies = ["autobahn<25.11.1"]
[tool.uv.sources]
radis-client = { path = "./radis-client", editable = true }
[tool.pyright]
ignore = ["**/migrations", "**/*.ipynb"]
typeCheckingMode = "basic"
reportUnnecessaryTypeIgnoreComment = true
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "radis.settings.development"
python_files = ["tests.py", "test_*.py", "*_tests.py"]
testpaths = ["radis/**/tests", "radis-client/**/tests"]
log_cli = false
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:.*use of fork\(\) may lead to deadlocks.*:DeprecationWarning',
"ignore:.*Converter 'drf_format_suffix' is already registered.*",
]
timeout = 60
[tool.coverage.run]
branch = true
source = ["radis", "radis-client"]
[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"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true