Объединены зависимости из requirements.txt и requirements-dev.txt, настройки pytest из pytest.ini, и базовая конфигурация ruff. Dockerfile обновлён: установка зависимостей через pyproject.toml. requirements.txt/pytest.ini сохранены для обратной совместимости.
26 lines
494 B
TOML
26 lines
494 B
TOML
[project]
|
||
name = "discord-bot"
|
||
version = "0.1.0"
|
||
description = "Discord бот с утренним дайджестом"
|
||
requires-python = ">=3.11"
|
||
dependencies = [
|
||
"discord.py~=2.7.1",
|
||
"python-dotenv~=1.2.2",
|
||
"requests~=2.34.2",
|
||
"defusedxml~=0.7.1",
|
||
]
|
||
|
||
[project.optional-dependencies]
|
||
dev = [
|
||
"pre-commit>=3.5.0",
|
||
"pytest>=7.4.0",
|
||
"pytest-asyncio>=0.21.0",
|
||
"ruff>=0.8.0",
|
||
]
|
||
|
||
[tool.pytest.ini_options]
|
||
asyncio_mode = "auto"
|
||
|
||
[tool.ruff]
|
||
target-version = "py311"
|