-
Notifications
You must be signed in to change notification settings - Fork 414
/
Copy pathpyproject.toml
124 lines (109 loc) · 2.72 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
[project]
name = "aiogram-bot-template"
description = "Template for creating scalable bots with aiogram"
license = "MIT"
requires-python = ">=3.10"
authors = [
{ name = "Forden", email = "24463229+Forden@users.noreply.github.com" }
]
maintainers = [
{ name = "Forden", email = "24463229+Forden@users.noreply.github.com" }
]
readme = "README.md"
packages = [{ include = "aiogram_bot_template" }]
dynamic = ["version", "dependencies"]
[project.urls]
homepage = "https://github.com/Forden/aiogram-bot-template"
repository = "https://github.com/Forden/aiogram-bot-template"
[project.scripts]
aiogram_bot_template = "aiogram_bot_template.bot:main"
[tool.poetry]
requires-poetry = ">=2.0"
package-mode = false
version = "1.0"
[tool.poetry.requires-plugins]
poetry-plugin-export = ">=1.8"
[tool.poetry.dependencies]
python = "^3.10"
aiogram = "^3"
environs = "^14"
redis = "^5"
asyncpg = "0.30.0"
pydantic = "^2"
structlog = "25.1.0"
aiojobs = "^1"
orjson = "^3.10"
tenacity = "^9"
pytz = "^2025"
aiohttp = "~3"
arrow = "^1"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
mypy = "^1.9.0"
black = { extras = ["d"], version = "^25" }
ruff = "^0.9"
isort = "~6"
types-pytz = "^2025"
deptry = "0.23.0"
pip-audit = "^2"
[tool.black]
target-version = ["py310"]
[tool.isort]
profile = "black"
py_version = 310
force_alphabetical_sort_within_sections = true
group_by_package = true
[tool.mypy]
python_version = "3.10"
files = "bot.py"
plugins = "pydantic.mypy"
warn_unused_configs = true
ignore_missing_imports = false
follow_imports_for_stubs = 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
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unreachable = true
strict_equality = true
strict_bytes = true
extra_checks = true
show_error_context = true
show_error_code_links = true
show_error_end = true
show_error_codes = true
pretty = true
namespace_packages = true
show_absolute_path = true
[[tool.mypy.overrides]]
module = "asyncpg.*"
ignore_missing_imports = true
[tool.ruff]
target-version = "py310"
preview = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"E501", # line too long, controlled by black
"ANN401", # attempt to replace mypy, ignored in favor of mypy
"RET504", # opinionated
"PLC0414", # breaks mypy unused imports
"SIM108", # forces to use ternary operator
"D", # unnecessary
"I", # unnecessary
"CPY001"# unnecessary
]
unfixable = ["B"]
[tool.ruff.format]
line-ending = "lf"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"