-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
98 lines (90 loc) · 1.89 KB
/
Copy pathpyproject.toml
File metadata and controls
98 lines (90 loc) · 1.89 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
[project]
name = "alert-hub-backend"
version = "0.1.0"
description = ""
authors = [{ name = "IFRC" }]
requires-python = "~=3.11.0"
readme = "README.md"
dependencies = [
"Django>=4.2,<4.3",
"celery~=5.3",
"flower",
"django-celery-beat",
"django-cors-headers",
"django-environ",
"django-redis>=5.3.0,<6",
"django-storages[s3, azure]",
"django-admin-autocomplete-filter",
"django-modeltranslation==0.19.5",
"iso639-lang>=2.1.0,<2.2.0",
"psycopg2-binary>=2.9.9,<3",
"pytz",
"colorlog",
"httpx",
"strawberry-graphql-django==0.49.1",
"strawberry-graphql==0.257.0",
"sentry-sdk",
"djangorestframework",
"validators",
"django-health-check",
"psutil",
"uwsgi",
"django-premailer",
"user-agents",
"factory-boy",
"azure-identity",
]
[dependency-groups]
dev = [
"pytest",
"ipython",
"pytest-profiling",
"pytest-ordering",
"pytest-django",
"django-stubs==4.2.6",
"celery-types",
]
[tool.uv]
package = false
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
exclude = [
"**/__pycache__",
"**/snap_test_*.py",
".venv/",
"legacy/",
"**/migrations/*.py",
]
[tool.black]
line-length = 125
skip-string-normalization = true
# NOTE: Update in .pre-commit-config.yaml as well
extend-exclude = "(__pycache__|.*snap_test_.*\\.py|.+\\/.+\\/migrations\\/.*)"
[tool.isort]
profile = "black"
multi_line_output = 3
skip = [
"**/__pycache__",
"**/snap_test_*.py",
".venv/",
"legacy/",
"**/migrations/*.py",
]
[tool.pyright]
exclude = [
"**/__pycache__",
"**/snap_test_*.py",
".venv/",
"legacy/",
"**/migrations/*.py",
]
reportMissingImports = true
reportMissingTypeStubs = false
venvPath = "."
venv = ".venv"
reportPrivateImportUsage = "warning"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "main.settings"
log_cli = true