-
Notifications
You must be signed in to change notification settings - Fork 14
/
pyproject.toml
96 lines (88 loc) · 1.89 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
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "aiogram_bot_template"
version = "1.0"
description = "Aiogram 3.x bot template using PostgreSQL (asyncpg) with SQLAlchemy + alembic"
authors = ["wakaree <[email protected]>"]
readme = "README.md"
repository = "https://github.com/wakaree/aiogram_bot_template"
[tool.poetry.dependencies]
python = "^3.11,<3.13" # Excluded 3.13 version due to msgspec incompatibility
aiogram = "^3.14.0"
aiogram_i18n = "^1.4"
aiohttp = "^3.10.8"
alembic = "^1.14.0"
asyncpg = "^0.29.0"
redis = "^5.1.0"
sqlalchemy = "^2.0.35"
msgspec = "^0.18.6"
pydantic = "^2.9.2"
pydantic_settings = "^2.6.0"
fluent_runtime = "^0.4.0"
aiogram-contrib = "^1.0.0"
[tool.poetry.group.dev.dependencies]
black = "^24.8.0"
mypy = "^1.11.2"
ruff = "^0.6.8"
ftl-extract = "^0.4.5"
[tool.black]
line-length = 99
exclude = "\\.?venv|\\.?tests"
[tool.ruff]
target-version = "py38"
line-length = 99
lint.select = [
"C",
"DTZ",
"E",
"F",
"I",
"ICN",
"ISC",
"N",
"PLC",
"PLE",
"Q",
"T",
"W",
"YTT",
]
exclude = [
".venv",
".idea",
".tests",
]
[tool.mypy]
plugins = [
"sqlalchemy.ext.mypy.plugin",
"pydantic.mypy"
]
exclude = [
"venv",
".venv",
".idea",
".tests",
]
warn_unused_configs = true
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
warn_unused_ignores = true
warn_return_any = true
no_implicit_reexport = true
strict_equality = true
extra_checks = true
[[tool.mypy.overrides]]
module = ["redis.*"]
ignore_missing_imports = true
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = ["aiogram_bot_template.telegram.handlers.*"]
strict_optional = false
warn_return_any = false