Добавлены основные файлы проекта: конфигурация, обработчики команд, мидлвары и утилиты для бота на Python.
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
[project]
|
||||
name = "server-bot-python"
|
||||
version = "0.1.0"
|
||||
description = "Add your description here"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.12"
|
||||
dependencies = [
|
||||
"aiogram>=3.27.0",
|
||||
"psutil>=7.2.2",
|
||||
"pydantic-settings>=2.14.0",
|
||||
"python-dotenv>=1.2.2",
|
||||
"types-psutil>=7.2.2.20260408",
|
||||
]
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"deptry>=0.25.1",
|
||||
"mypy>=1.20.1",
|
||||
"ruff>=0.15.11",
|
||||
]
|
||||
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 160
|
||||
target-version = "py313"
|
||||
|
||||
[tool.ruff.format]
|
||||
quote-style = "single"
|
||||
indent-style = "space"
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["E", "F", "I", "UP", "B", "Q", "ERA", "D", "SIM", "ARG", "RUF", "C4", "RET", "ASYNC", "PERF", "PL"]
|
||||
ignore = ["D100", "RUF002", "D107", "RUF001", "D104", "D203", "D213", "ARG001"]
|
||||
|
||||
[tool.ruff.lint.flake8-quotes]
|
||||
inline-quotes = "single"
|
||||
multiline-quotes = "double"
|
||||
docstring-quotes = "double"
|
||||
avoid-escape = true
|
||||
|
||||
[tool.mypy]
|
||||
python_version = "3.13"
|
||||
strict = true
|
||||
warn_unused_ignores = true
|
||||
warn_redundant_casts = true
|
||||
warn_unreachable = true
|
||||
Reference in New Issue
Block a user