-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
102 lines (96 loc) · 2.1 KB
/
pyproject.toml
File metadata and controls
102 lines (96 loc) · 2.1 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
[project]
name = "risk-module-server"
version = "0.1.0"
description = ""
authors = [{ name = "IFRC" }]
requires-python = "~=3.8.1"
license = { text = "AGPL-3.0-only" }
dependencies = [
"celery[redis]==5.1.1",
"djangorestframework-camel-case==1.2.0",
"djangorestframework==3.12.4",
"django-celery-beat==2.2.1",
"django-cors-headers==3.7.0",
"django-crispy-forms==1.12.0",
"django-storages[azure]~=1.13.1",
"django-enumfield==2.0.2",
"django-filter==2.4.0",
"django-redis==5.0.0",
"Django==3.2.17",
"ipython",
"factory-boy",
"drf-writable-nested",
"openpyxl==3.0.9",
"psycopg2-binary",
"pandas==1.3.4",
"requests",
"geopy==2.2.0",
"gunicorn~=20.0.4",
"boto3==1.20.33",
"lxml==4.7.1",
"Shapely==1.8.1.post1",
"beautifulsoup4==4.11.1",
"pyproj==3.3.1",
"urllib3==1.26.12",
"sentry-sdk>=2.7.1,<3",
"django-environ>=0.9.0,<0.10",
"drf-spectacular",
"xlrd==1.2.0",
"python-Levenshtein==0.21.1",
"django-health-check",
"psutil",
"azure-identity",
]
[dependency-groups]
dev = [
"pytest-django",
"django-stubs==4.2.6",
"djangorestframework-stubs",
]
[tool.django-stubs]
django_settings_module = "main.settings"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "risk_module.settings"
log_cli = true
[tool.pyright]
extraPaths = ["apps"]
exclude = [
"**/node_modules",
"**/__pycache__",
"apps/experimental",
"apps/typestubs",
"**/snap_test_*.py",
]
reportMissingImports = true
reportMissingTypeStubs = false
venvPath = "."
venv = ".venv"
[tool.black]
line-length = 130
target-version = ['py39']
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.tox
| \.venv
| \.db
| _build
| buck-out
| build
| dist
| docs
)/
'''
# NOTE: Update in .pre-commit-config.yaml as well
extend-exclude = "^.*\\b(migrations)\\b.*$ (__pycache__|.*snap_test_.*\\.py|.+/+.+/+migrations/+.*)"
[tool.isort]
profile = "black"
multi_line_output = 3
# NOTE: Update in .pre-commit-config.yaml as well
skip = [
"**/__pycache__",
"**/snap_test_*.py",
".venv/",
"**/migrations/*.py",
]