-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathpyproject.toml
91 lines (86 loc) · 1.78 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
[project]
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"
license = "MIT"
requires-python = ">=3.11,<3.13"
repository = "https://github.com/wakaree/aiogram_bot_template"
dependencies = [
"aiogram~=3.16.0",
"aiogram-i18n~=1.4",
"aiohttp~=3.11.11",
"alembic~=1.14.0",
"asyncpg~=0.30.0",
"redis~=5.2.1",
"sqlalchemy~=2.0.36",
"msgspec~=0.18.6",
"pydantic~=2.10.4",
"pydantic-settings[yaml]~=2.7.0",
"fluent_runtime~=0.4.0",
"aiogram-contrib~=1.1.3",
]
[project.urls]
repository = "https://github.com/wakaree/aiogram_bot_template"
[tool.uv]
dev-dependencies = [
"mypy~=1.14.0",
"ruff~=0.8.4",
"ftl-extract>=0.5.0",
]
[tool.black]
line-length = 99
exclude = "\\.?venv|\\.?tests"
[tool.ruff]
target-version = "py38"
line-length = 99
lint.select = [
"C",
"DTZ",
"E",
"F",
"I",
"ICN",
"N",
"PLC",
"PLE",
"Q",
"T",
"W",
"YTT",
]
lint.ignore = ["N805"]
exclude = [
".venv",
".idea",
]
[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 = ["app.telegram.handlers.*"]
strict_optional = false
warn_return_any = false
disable_error_code = ["union-attr"]