-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
217 lines (192 loc) · 5.23 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
# This file contains project information and helps control the version numbers displayed.
# It also contains settings for linters and code checkers isort, black and mypy.
# Note that these settings are not respected with pre-commit run --all-files
# In that case add configurations to the .pre-commit-config.yaml file.
[tool.poetry]
name = "serve"
version = "1.0.0"
description = "SciLifeLab Serve is a platform offering machine learning model serving, app hosting (Shiny, Streamlit, Dash, etc.), and other tools to life science researchers affiliated with a Swedish research institute."
license = "Apache 2.0"
maintainers = ["Team Whale <serve@scilifelab.se>",]
authors = ["Team Whale <serve@scilifelab.se>",]
homepage = "https://serve.scilifelab.se"
repository = "https://github.com/ScilifelabDataCentre/serve"
keywords = ["machine learning", "life science", "research", "django", "python"]
packages = []
[tool.poetry.dependencies]
python = "^3.10.0"
django = "==5.1.1"
django-celery-beat = "==2.7.0"
django-compressor = "==4.5.1"
django-cors-headers = "==4.4.0"
django-extensions = "==3.2.3"
django-filter = "==24.3"
django-tagulous = "==1.3.3"
django-guardian = "==2.4.0"
djangorestframework = "== 3.15.2"
django-crispy-forms = "==2.3"
crispy-bootstrap5 = "==2024.2"
# django-wiki
wiki = "==0.11.2"
# Other Python and project-related libraries
flower = "==2.0.1"
requests = "==2.31.0"
amqp = "==5.1.1"
psycopg = {extras = ["binary", "pool", "c"], version = "^3.2.1"}
redis = "==5.0.1"
watchdog = "==3.0.0"
drf-nested-routers = "==0.93.4"
s3fs = "==2023.9.2"
minio = "==7.1.17"
celery = "==5.3.4"
uvicorn = "==0.20.0"
flask-cors = "==4.0.0"
Pillow = "10.2.0"
flatten-json = "==0.1.13"
PyYAML = "==6.0.1"
Markdown = ">=3.4,<3.6"
# Logging
django-structlog = "^7.1.0"
colorlog = "^6.8.2"
black = { version = "==23.3.0", optional = true }
isort = { version = "==5.12.0", optional = true }
flake8 = { version = "==6.0.0", optional = true }
mypy = { version = "==1.10.0", optional = true }
#django-stubs = { version = "==5.0.0", optional = true }
hypothesis = { version = "==6.86.1", optional = true }
moto = { version = "==4.*", extras = ["ec2", "s3", "all"], optional = true }
pytest = { version = "~8.0.1", optional = true }
pytest-django = { version = "==4.8.0", optional = true }
pytest-cov = { version = "==4.1.0", optional = true }
pytest-xdist = { version = "^3.5.0", optional = true }
django-axes = {extras = ["ipware"], version = "^6.3.0"}
django-password-validators = "^1.7.3"
django-htmx = "^1.18.0"
[tool.poetry.extras]
linters = ["black", "isort", "flake8", "mypy"]
tests = ["pytest-django", "pytest-cov", "pytest-xdist", "hypothesis", "pytest", "moto"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.serve]
build-date = ""
gitref = ""
imagetag = ""
[tool.isort]
profile = 'black'
[tool.black]
line-length = 120
target-version = ['py311']
include = '\.pyi?$'
extend-exclude = '''
/(
\.git
| \.mypy_cache
| \.venv
| venv
| migrations
)/
'''
[tool.mypy]
strict = true
python_version = "3.12"
disallow_subclassing_any = false
ignore_missing_imports = false
warn_return_any = true
untyped_calls_exclude = ["projects.models"] # ["apps.helpers","projects.models"]
exclude = ["venv", ".venv", "examples"]
#plugins = ["mypy_django_plugin.main"]
#[tool.django-stubs]
#django_settings_module = "studio.settings"
[[tool.mypy.overrides]]
module = "studio.*"
strict = true
disallow_subclassing_any = false
disallow_untyped_decorators = false
follow_imports_for_stubs = false
[[tool.mypy.overrides]]
module = "*.models"
strict = false
check_untyped_defs = false
disallow_incomplete_defs = false
disallow_subclassing_any = false
disallow_untyped_decorators = false
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = [
"*.tests.*",
"*.tests",
"conftest",
#"cypress.*"
]
check_untyped_defs = false
disallow_incomplete_defs = false
disallow_subclassing_any = false
disallow_untyped_calls = false
disallow_untyped_decorators = false
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = "*.migrations.*"
ignore_errors = true
# A temporary section to ease the transition of mypy into the codebase
[[tool.mypy.overrides]]
module = [
"apps.*",
"cypress.*",
"cypress/e2e/setup-scripts/seed_collections_user"
]
strict = false
ignore_errors = true
# A temporary section to ease the transition of mypy into the codebase
[[tool.mypy.overrides]]
module = [
"api.*",
"apps.*",
"common.*",
"customtags.*",
"models.*",
"monitor.*",
"portal.*",
"projects.*",
"scripts.*",
]
strict = false
check_untyped_defs = false
disallow_incomplete_defs = false
disallow_subclassing_any = false
disallow_untyped_calls = false
disallow_untyped_decorators = false
disallow_untyped_defs = false
no_implicit_reexport = false
[[tool.mypy.overrides]]
module = [
"boto3.*",
"colorlog.*",
"crispy_forms.*",
"django.*",
"django_structlog.*",
"rest_framework.*",
"flatten_json.*",
"guardian.*",
"hypothesis.*",
"django_filters.*",
"rest_framework_nested.*",
"tagulous.*",
"minio.*",
"moto.*",
"celery.*",
"dash.*",
"dash_core_components.*",
"dash_html_components.*",
"django_plotly_dash.*",
"dash_bootstrap_components.*",
"markdown.*",
"pytest.*",
"pytz.*",
"requests.*",
"s3fs.*",
"setuptools.*",
"structlog.*",
"yaml.*",
]
ignore_missing_imports = true