-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
118 lines (109 loc) · 1.9 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "telegram-bot"
version = "0.1.0"
description = ""
authors = ["Trim21 <[email protected]>"]
readme = "readme.md"
package-mode = false
[tool.poetry.dependencies]
python = "^3.10"
python-telegram-bot = { extras = ["socks"], version = "21.6" }
redis = { extras = ["hiredis"], version = "5.2.0" }
yarl = "1.17.0"
msgspec = "0.18.6"
uvicorn = "0.32.0"
starlette = "0.41.2"
aiorwlock = "1.4.0"
asyncmy = "0.2.9"
asyncpg = "0.29.0"
confluent-kafka = "2.6.0"
sslog = "0.0.0a50"
async-lru = "2.0.4"
[tool.poetry.group.dev.dependencies]
watchfiles = "0.24.0"
pre-commit = "4.0.1"
confluent-kafka-stubs = { git = 'https://gitlab.com/Trim21/confluent-kafka-stubs.git', rev = '9484f4aad44eab371fe952b278ab2715f3a8c780' }
asyncpg-stubs = "0.29.1"
[tool.black]
target_version = ['py310']
extend-exclude = "api/v1"
[tool.ruff]
extend-exclude = [".venv", "api"]
target-version = "py310"
[tool.ruff.lint]
select = [
"B",
"C",
"E",
"F",
"G",
"I",
"N",
"Q",
"S",
"W",
"BLE",
# "DJ",
"EXE",
"ICN",
"INP",
"ISC",
"NPY",
# "DTZ",
# "PTH",
"PD",
"PGH",
"PIE",
"PL",
"PT",
"PYI",
"RET",
"RSE",
"RUF",
"SIM",
"SLF",
"TID",
"TRY",
"YTT",
]
ignore = [
'N806',
'N802',
'N803',
'E501',
'BLE001',
'RUF002',
'S301',
'S314',
'S101',
'N815',
'S104',
'C901',
'ISC003',
'PLR0911',
'PLR0913',
'RUF001',
'SIM108',
'RUF003',
'RET504',
'TRY300',
'INP001',
'TRY003',
'TRY201',
'TRY301',
'PLR0912',
'PLR0915',
'PLR2004',
'PGH003',
]
unfixable = ['F401', 'F841']
[tool.mypy]
strict = true
warn_no_return = false
check_untyped_defs = true
warn_return_any = false
explicit_package_bases = true
ignore_missing_imports = true