This repository has been archived by the owner on Feb 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
99 lines (89 loc) · 2.73 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
[project]
name = "radis-client"
description = "RADIS client library to connect to a RADIS server."
authors = [{ name = "Kai Schlamp" }]
license = "AGPL-3.0-or-later"
readme = "README.md"
requires-python = ">=3.12,<4.0"
dynamic = ["version"]
dependencies = ["requests"]
[dependency-groups]
dev = [
"adit-radis-shared @ git+https://github.com/openradx/[email protected]",
"factory-boy<=3.3.3",
"ipykernel",
"ipython",
"pyright",
"pytest",
"pytest-cov",
"pytest-django",
"pytest-env",
"pytest-mock",
"pytest-playwright",
"python-dotenv",
"radis @ git+https://github.com/openradx/[email protected]",
"ruff",
"typer",
]
[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 = "radis.settings.production"
python_files = ["tests.py", "test_*.py", "*_tests.py"]
testpaths = ["tests"]
env = [
"DATABASE_URL=postgres://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_SECURE_SSL_REDIRECT=false",
"DJANGO_SERVER_EMAIL=adit@localhost",
"DJANGO_STATIC_ROOT=.",
"POSTGRES_PASSWORD=postgres",
"LLAMACPP_URL=http://llamacpp.local:8080",
"SITE_DOMAIN=localhost",
"SITE_NAME=ADIT",
"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"
filterwarnings = [
"ignore:'cgi' is deprecated:DeprecationWarning",
"ignore:.*No directory at.*staticfiles.*:UserWarning",
"ignore:.*Converter 'drf_format_suffix' is already registered.*",
"ignore:.*pkg_resources is deprecated as an API.*",
"ignore:.*Deprecated call to `pkg_resources.declare_namespace\\('zope'\\)`.*",
]
[tool.coverage.run]
branch = true
source = ["radis_client"]
[tool.coverage.report]
skip_empty = true
show_missing = true
[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"