-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
108 lines (99 loc) · 3.18 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
[tool.poetry]
name = "adit-client"
version = "0.0.0"
description = "ADIT Client library to connect to an ADIT server."
authors = ["Kai Schlamp <kai.schlamp@gmail.com>"]
license = "AGPL-3.0-or-later"
readme = "README.md"
packages = [{ include = "adit_client" }]
[tool.poetry.dependencies]
dicognito = "0.17.0"
dicomweb-client = "^0.59.1"
pydicom = "^2.4.3"
python = ">=3.12,<4.0"
[tool.poetry.group.dev.dependencies]
adit = { git = "https://github.com/openradx/adit.git", tag = "0.37.0" }
adit-radis-shared = { git = "https://github.com/openradx/adit-radis-shared.git", tag = "0.11.0" }
factory-boy = "^3.3.1"
invoke = "^2.2.0"
ipykernel = "^6.29.0"
ipython = "^8.21.0"
pyright = "^1.1.349"
pytest = "^8.0.0"
pytest-cov = "^6.0.0"
pytest-django = "^4.8.0"
pytest-env = "^1.1.3"
pytest-mock = "^3.14.0"
pytest-playwright = "^0.6.2"
python-dotenv = "^1.0.1"
ruff = "^0.8.3"
[tool.ruff]
target-version = "py312"
line-length = 100
lint.select = ["E", "F", "I"]
[tool.pyright]
ignore = ["**/*.ipynb"]
typeCheckingMode = "basic"
reportUnnecessaryTypeIgnoreComment = true
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "adit.settings.production"
python_files = ["tests.py", "test_*.py", "*_tests.py"]
testpaths = ["tests"]
env = [
"CALLING_AE_TITLE=ADIT",
"DATABASE_URL=psql://postgres:postgres@localhost:5432/postgres",
"DBBACKUP_STORAGE_LOCATION=/backups",
"DJANGO_ADMIN_EMAIL=admin@localhost",
"DJANGO_ADMIN_FULL_NAME=ADIT-Admin",
"DJANGO_ALLOWED_HOSTS=localhost",
"DJANGO_CSRF_TRUSTED_ORIGINS=localhost",
"DJANGO_EMAIL_URL=smtp://adit@localhost",
"DJANGO_SECRET_KEY=dummy",
"DJANGO_SERVER_EMAIL=adit@localhost",
"DJANGO_STATIC_ROOT=.",
"FILE_TRANSMIT_HOST=receiver.local",
"FILE_TRANSMIT_PORT=14638",
"ORTHANC1_DICOM_PORT=7501",
"ORTHANC1_DICOMWEB_ROOT=dicomweb",
"ORTHANC1_HOST=orthanc1.local",
"ORTHANC1_HTTP_PORT=6501",
"ORTHANC2_DICOM_PORT=7502",
"ORTHANC2_DICOMWEB_ROOT=dicomweb",
"ORTHANC2_HOST=orthanc2.local",
"ORTHANC2_HTTP_PORT=6502",
"POSTGRES_PASSWORD=postgres",
"RECEIVER_AE_TITLE=ADIT",
"SITE_DOMAIN=localhost",
"SITE_NAME=ADIT",
"SITE_USES_HTTPS=false",
"STORE_SCP_HOST=receiver.local",
"STORE_SCP_PORT=11112",
"SUPERUSER_AUTH_TOKEN=dummy",
"SUPERUSER_EMAIL=superuser@localhost",
"SUPERUSER_USERNAME=superuser",
"SUPERUSER_PASSWORD=dummy",
"SUPPORT_EMAIL=support@localhost",
"TOKEN_AUTHENTICATION_SALT=dummy",
"USER_TIME_ZONE=UTC",
]
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 = ["integration: mark a test as an integration test."]
filterwarnings = [
"ignore:'cgi' is deprecated:DeprecationWarning",
"ignore:.*No directory at.*staticfiles.*:UserWarning",
]
[tool.coverage.run]
branch = true
source = ["adit_client"]
[tool.coverage.report]
skip_empty = true
show_missing = true
[tool.poetry-dynamic-versioning]
enable = true
pattern = '(?P<base>\d+(\.\d+)*)([-._]?((?P<stage>[a-zA-Z]+)[-._]?(?P<revision>\d+)?))?$'
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"