-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
92 lines (84 loc) · 1.92 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
[tool.poetry]
name = "alert-hub-backend"
version = "0.1.0"
description = ""
authors = ["IFRC"]
readme = "README.md"
package-mode = false
[tool.poetry.dependencies]
python = "^3.11"
Django = ">=4.2,<4.3"
celery = "^5.3"
flower="*" # celery-dashboard
django-celery-beat = "*"
django-cors-headers = "*"
django-environ = "*"
django-redis = "^5.3.0"
django-storages = {extras = ["s3", "azure", "azure-identity"], version = "*"}
django-admin-autocomplete-filter = "*"
django-modeltranslation = "==0.19.5"
iso639-lang = "^2.1.0"
psycopg2-binary = "^2.9.9"
pytz = "*"
colorlog = "*"
requests = "*"
strawberry-graphql-django = {extras = ["strawberry-graphql"], version = "0.49.1"}
sentry-sdk = "*"
djangorestframework = "*"
validators = "*"
django-health-check = "*"
psutil = "*"
uwsgi = "*"
django-premailer = "*"
user-agents = "*"
factory-boy = "*"
azure-identity = "*"
[tool.poetry.dev-dependencies]
pytest = "*"
ipython = "*"
pytest-profiling = "*"
pytest-ordering = "*"
pytest-django = "*"
django-stubs = "==4.2.6" # NOTE: 4.2.7 is messing with TextChoices/IntergerChoices
celery-types = "*"
[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"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "main.settings"
log_cli = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"