-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (84 loc) · 2.67 KB
/
pyproject.toml
File metadata and controls
90 lines (84 loc) · 2.67 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
[project]
name = "python-backend-template"
version = "0.1.0"
description = "Python backend template for creating new projects"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"aiogram>=3.21.0",
"aiohttp>=3.12.15",
"alembic>=1.16.4",
"asyncpg>=0.30.0",
"cryptography>=45.0.6",
"dishka>=1.6.0",
"fastapi>=0.116.1",
"fastapi-idempotent>=0.0.3",
"faststream[confluent]>=0.5.48",
"haolib",
"httpx>=0.28.1",
"opentelemetry-distro>=0.57b0",
"opentelemetry-exporter-otlp-proto-grpc>=1.36.0",
"opentelemetry-exporter-otlp-proto-http>=1.36.0",
"opentelemetry-instrumentation>=0.57b0",
"opentelemetry-instrumentation-fastapi>=0.57b0",
"opentelemetry-instrumentation-faststream>=0.1.3",
"opentelemetry-instrumentation-httpx>=0.57b0",
"opentelemetry-instrumentation-logging>=0.57b0",
"pydantic-settings>=2.10.1",
"pyjwt[crypto]>=2.10.1",
"redis>=6.4.0",
"sentry-sdk>=2.35.0",
"sqlalchemy>=2.0.42",
"tenacity>=9.1.2",
"uvicorn>=0.35.0",
"uvloop>=0.21.0",
]
[tool.ruff]
target-version = "py313"
line-length = 120
# Disable fix for unused imports (`F401`).
lint.unfixable = ["F401"]
lint.select = ["ALL"]
lint.ignore = [
"D203", #incorrect-blank-line-before-class
"D213", # multi-line-summary-second-line
"TRY003", # raise-vanilla-args
"EM101", # raw-string-in-exception
"D107", # undocumented-public-init
"A002", # builtin-argument-shadowing
"D202", # blank-line-after-function
"D401", # non-imperative-mood
"G004", # logging-f-string
"ANN401", # any-type
"S101", # assert
"PT011", # pytest-raises-too-broad
"B024", # abstract-base-class-without-abstract-method
"EXE002", # shebang-missing-executable-file
"RUF001", # ambiguous-unicode-character-string
"BLE001", # blind-except
"ARG001", # unused-function-argument
"N818", # error-suffix-on-exception-name
"PLR0913", # too-many-arguments
"TC001", # typing-only-first-party-import
"RUF012", # mutable-class-default
"COM812", # missing-trailing-comma
"TC002", #typing-only-third-party-import
]
[tool.ruff.lint.per-file-ignores]
"migrations/*" = ["ALL"]
[tool.coverage.run]
# We need *__dishka_factory* here to be excluded because it is a generated file by dishka.
omit = ["*/lib/*", "*__dishka_factory*", "app.py", "dependencies.py", "tests/*"]
concurrency = ["greenlet"]
[tool.uv.sources]
haolib = { git = "https://github.com/hao-vc/haolib" }
[dependency-groups]
dev = [
"httpx>=0.28.1",
"mypy>=1.18.1",
"pytest>=8.4.1",
"pytest-asyncio>=1.1.0",
"pytest-cov>=6.2.1",
"pytest-xdist>=3.8.0",
"ruff>=0.12.9",
]