-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
96 lines (87 loc) 路 1.53 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"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "telegram-casino-bot"
version = "0.1.2"
description = "Casino Bot"
authors = ["Th3Kanashii <Th3Kanashii@gmail.com>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
aiogram = "^3.4.1"
aiogram-i18n = "^1.3.4"
alembic = "^1.13.1"
asyncpg = "^0.29.0"
fluent-runtime = "^0.4.0"
pydantic-settings = "^2.2.1"
sqlalchemy = "^2.0.29"
betterlogging = "^1.0.0"
redis = "^5.0.3"
cachetools = "^5.3.3"
[tool.poetry.group.dev.dependencies]
libcst = "^1.2.0"
ruff = "^0.3.4"
mypy = "^1.9.0"
black = "^24.3.0"
[tool.black]
line_length = 99
exclude = "\\.?venv|\\.cache"
[tool.ruff]
target-version = "py38"
line-length = 99
select = [
"C",
"DTZ",
"E",
"F",
"I",
"ISC",
"N",
"PLC",
"PLE",
"Q",
"W",
"YTT",
"RET",
"SIM",
"ASYNC",
]
exclude = [
".git",
".venv",
".idea",
".tests",
".cache",
"build",
"dist",
"scripts",
"migrations",
]
[tool.ruff.per-file-ignores]
"bot/misc/calculate_game.py" = ["E501"]
"bot/handlers/game.py" = ["E501"]
[tool.mypy]
plugins = [
"sqlalchemy.ext.mypy.plugin",
"pydantic.mypy"
]
exclude = [
".git",
".venv",
".idea",
".tests",
".cache",
"build",
"dist",
"scripts",
"migrations",
]
[[tool.mypy.overrides]]
module = ["redis.*"]
ignore_missing_imports = true
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = ["bot.handlers.*"]
strict_optional = false
warn_return_any = false