-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
327 lines (288 loc) · 7.7 KB
/
pyproject.toml
File metadata and controls
327 lines (288 loc) · 7.7 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
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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
[build-system]
requires = [ "setuptools>=41", "wheel", "setuptools-git-versioning<4,>=3.0", ]
build-backend = "setuptools.build_meta"
[tool.setuptools-git-versioning]
enabled = true
version_file = "syncmaster/VERSION"
count_commits_from_version_file = true
dev_template = "{tag}.dev{env:GITHUB_RUN_ID:{ccount}}+git.{sha}"
dirty_template = "{tag}.dev{env:GITHUB_RUN_ID:{ccount}}+git.{sha}.dirty"
[project]
name = "data-syncmaster"
license = "Apache-2.0"
description = "Syncmaster REST API + scheduler + Worker"
authors = [{name= "MWS Data Bridge", email = "onetools@mts.ru"}]
readme = "README.rst"
classifiers = [
"Development Status :: 3 - Alpha",
"Framework :: Pydantic",
"Framework :: Pydantic :: 2",
"Framework :: FastAPI",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
keywords = ["Syncmaster", "REST", "API", "Worker", "Spark", "Transfer", "ETL"]
requires-python = ">=3.11"
dependencies = [
"pydantic~=2.12.5",
"pydantic-settings>=2.12,<2.14",
"pydantic-settings-logging~=0.1.1",
"sqlalchemy~=2.0.44",
"sqlalchemy-utils~=0.42.0",
"pyyaml~=6.0.3",
"coloredlogs~=15.0.1",
"python-json-logger~=4.0.0",
"asgi-correlation-id~=4.3.4",
"uuid6~=2025.0.1",
"celery~=5.6.0",
"psycopg2-binary~=2.9.11",
]
dynamic = ["version"]
[tool.setuptools.packages.find]
include = ["syncmaster*"]
exclude = ["docs", "tests"]
[tool.setuptools.package-data]
"*" = ["py.typed", "*.yml", "*.ini", "VERSION"]
[project.urls] # Optional
"Homepage" = "https://github.com/MTSWebServices/syncmaster"
"Documentation" = "https://syncmaster.readthedocs.io/"
"Source" = "https://github.com/MTSWebServices/syncmaster"
"CI/CD" = "https://github.com/MTSWebServices/syncmaster/actions"
"Tracker" = "https://github.com/MTSWebServices/syncmaster/issues"
[project.optional-dependencies]
server = [
"fastapi~=0.129",
"starlette-exporter~=0.23.0",
"python-multipart~=0.0.21",
"uvicorn~=0.41.0",
"alembic~=1.18.1",
"pyjwt~=2.11.0",
"asyncpg~=0.31",
"python-keycloak>=7.0.1,<7.2.0",
"itsdangerous~=2.2.0",
]
scheduler = [
"asyncpg~=0.31",
"apscheduler~=3.11.1",
]
worker = [
"onetl[files]~=0.15.0",
"pyspark<4.0.0",
"horizon-hwm-store~=1.1.4",
"jinja2~=3.1.6",
]
kerberos = [
"onetl[kerberos]~=0.15.0",
]
[dependency-groups]
test = [
"pytest~=8.4.2",
"httpx~=0.28.1",
"pytest-asyncio>=0.26.0,<1.0",
"pytest-randomly~=4.0.1",
"pytest-rerunfailures~=16.1",
"pytest-deadfixtures>=3.0,<3.2",
"pytest-mock~=3.15.1",
"pytest-lazy-fixtures~=1.4.0",
"faker~=40.1",
"coverage~=7.13.0",
"gevent~=25.9.1",
"respx~=0.22.0",
"dirty-equals~=0.11.0",
]
dev = [
"ruff~=0.15.0",
"mypy~=1.19.1",
"prek~=0.3.2",
"sqlalchemy[mypy]~=2.0.44",
"types-jwcrypto~=1.5.0",
]
docs = [
"setuptools-git-versioning>=2.1,<3.1",
"autodoc-pydantic~=2.2.0",
"numpydoc~=1.10.0",
"sphinx>=8.2.3,<9.1.0",
"furo~=2025.12.19",
"sphinx-copybutton~=0.5.2",
"sphinxcontrib-towncrier~=0.5.0a0",
"towncrier~=25.8.0",
"sphinx-issues~=5.0.1",
"sphinx-design>=0.6.1,<0.8.0",
"sphinx-favicon>=1.0.1,<1.2.0",
"sphinx-argparse~=0.5.2",
# https://github.com/mgeier/sphinx-last-updated-by-git/pull/77
"sphinx-last-updated-by-git~=0.3.8",
# uncomment after https://github.com/zqmillet/sphinx-plantuml/pull/4
# sphinx-plantuml~=1.0.0",
]
[tool.uv]
default-groups = []
[tool.ruff]
target-version = "py311"
line-length = 120
extend-exclude = ["docs/", "Makefile"]
[tool.ruff.lint]
select = ["ALL"]
ignore = ["ARG", "ANN", "A002", "COM812", "D", "TD", "FIX002"]
[tool.ruff.lint.per-file-ignores]
"syncmaster/db/migrations/versions/2025-08-10_0012_update_ts.py" = ["E501"]
"syncmaster/db/migrations/*" = ["N999"]
"syncmaster/db/models/*" = ["TC"]
"syncmaster/db/repositories/*" = ["TC", "PLR0913"]
"syncmaster/schemas/*" = ["TC"]
"tests/*" = [
"S",
"A",
"E501",
"FBT001",
"FBT002",
"PLR2004",
"PLR0913",
"SLF001",
"FIX002",
"PERF401",
"RET504",
"PLC0415",
"C408",
]
"tests/resources/file_df_connection/test_data.py" = ["RUF001"]
[tool.ruff.lint.flake8-pytest-style]
parametrize-names-type = "list"
parametrize-values-type = "list"
parametrize-values-row-type = "tuple"
[tool.ruff.lint.flake8-quotes]
inline-quotes = "double"
multiline-quotes = "double"
docstring-quotes = "double"
[tool.mypy]
python_version = "3.11"
plugins = ["pydantic.mypy", "sqlalchemy.ext.mypy.plugin"]
follow_imports = "silent"
[[tool.mypy.overrides]]
module = "alembic.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "pyarrow.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "keycloak.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "avro.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "celery.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "kombu.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "onetl.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "sqlalchemy_utils.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "apscheduler.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "pydantic_settings_logging"
ignore_missing_imports = true
[tool.pytest.ini_options]
markers = [
"server: tests for server (require running database)",
"scheduler: tests for scheduler (require running database)",
"worker: tests for syncmaster worker",
"hive: tests for Hive",
"postgres: tests on Postgres",
"oracle: tests for Oracle",
"clickhouse: tests for Clickhouse",
"mysql: tests for MySQL",
"mssql: tests for MSSQL",
"hdfs: tests for hadoop hdfs",
"s3: tests for S3",
"ftp: tests for FTP",
"ftps: tests for FTPS",
"sftp: tests for SFTP",
"samba: tests for Samba",
"webdav: tests for WebDAV",
]
[tool.coverage.run]
source_pkgs = ["syncmaster"]
branch = true
parallel = true
relative_files = true
concurrency = ["gevent", "multiprocessing"]
omit = [
"tests/*",
]
data_file = "reports/.coverage"
[tool.coverage.report]
precision = 2
exclude_also = [
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"class .*\bProtocol:",
"@(abc\\.)?abstractmethod",
"\\.\\.\\.",
"def downgrade\\(\\)",
]
partial_also = [
"if .*TYPE_CHECKING:",
"if .*isEnabledFor.*:",
"if .*debug.*:",
"if .*sys.version_info.*:",
"if __name__ == .__main__.:",
"except .*ImportError",
]
[tool.towncrier]
name = "Syncmaster"
package = "syncmaster"
filename = "docs/changelog/NEXT_RELEASE.rst"
directory = "docs/changelog/next_release/"
title_format = "{version} ({project_date})"
issue_format = ":issue:`{issue}`"
[[tool.towncrier.type]]
directory = "breaking"
name = "Breaking Changes"
showcontent = true
[[tool.towncrier.type]]
directory = "significant"
name = "Significant Changes"
showcontent = true
[[tool.towncrier.type]]
directory = "feature"
name = "Features"
showcontent = true
[[tool.towncrier.type]]
directory = "improvement"
name = "Improvements"
showcontent = true
[[tool.towncrier.type]]
directory = "bugfix"
name = "Bug Fixes"
showcontent = true
[[tool.towncrier.type]]
directory = "dependency"
name = "Dependencies"
showcontent = true
[[tool.towncrier.type]]
directory = "doc"
name = "Doc only Changes"
showcontent = true
[[tool.towncrier.type]]
directory = "misc"
name = "Misc"
showcontent = true
[[tool.towncrier.type]]
directory = "removal"
name = "Removal"
showcontent = true