This repository was archived by the owner on Jul 26, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (95 loc) · 2.45 KB
/
pyproject.toml
File metadata and controls
100 lines (95 loc) · 2.45 KB
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
[project]
name = "pandito_bot"
version = "0.0.0"
requires-python = ">=3.12"
readme = "README.md"
license = { file = "LICENSE" }
dependencies = [
"aiogram==3.15.0",
"aiogram-dialog==2.2.0",
"aiohttp==3.10.11",
"alembic==1.14.0",
"apscheduler==3.11.0",
"dishka==1.4.2",
"psycopg[binary]==3.2.3",
"pydantic==2.9.2",
"pydantic-settings==2.6.1",
"pypng==0.20220715.0",
"qrcode==8.0",
"sqlalchemy==2.0.36",
]
[project.urls]
Repository = "https://github.com/whatochka/pandito_bot"
[tool.ruff]
line-length = 88
lint.select = [
"F", # Pyflakes
"E", # pycodestyle
"W", # pycodestyle
"UP", # pyupgrade
"ANN", # flake8-annotations
"ASYNC1", # flake8-trio
"BLE", # flake8-blind-except
"B", # flake8-bugbear
"COM", # flake8-commas
"C4", # flake8-comprehensions
"PLC", # Pylint
"ISC", # flake8-implicit-str-concat
"INP", # flake8-no-pep420
"PIE", # flake8-pie
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SLF", # flake8-self
"SIM", # flake8-simplify
"FLY", # flynt
"PERF", # Perflint
"RUF", # Ruff-specific rules
"T10", # flake8-debugger
"T20", # flake8-print
]
lint.ignore = [
"ANN101", # missing-type-self | Missing type annotation for {name} in method
"ANN102", # missing-type-cls | Missing type annotation for {name} in classmethod
"ANN401", # any-type | Dynamically typed expressions (typing.Any) are disallowed in {name}
"UP038", # Use `X | Y` in `isinstance` call instead of `(X, Y)`
"B905", # `zip()` without an explicit `strict=` parameter
"RUF001", # ambiguous-unicode-character-string | String contains ambiguous {}. Did you mean {}?
"RUF002", # ambiguous-unicode-character-docstring | Docstring contains ambiguous {}. Did you mean {}?
"RUF003", # ambiguous-unicode-character-comment | Comment contains ambiguous {}. Did you mean {}?
"UP042", # Class StrEnum inherits from both `str` and `enum.Enum`
"SIM102", # Use a single `if` statement instead of nested `if` statements
]
src = ["bot", "core", "database", "db", "di", "migrations", "tools"]
exclude = [
".git",
"build",
"dist",
"venv",
".venv",
"*.egg-info",
"*resources",
]
target-version = "py312"
indent-width = 4
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.black]
line-length = 88
target-version = ["py312"]
exclude = '''
(
\.eggs
| \.git
| build
| dist
| venv
| resources
)
'''
[tool.isort]
profile = "black"
line_length = 88