- Added notifications for successful payments in `api/core/notifications.py`. - Created main API entry point in `api/main.py` with FastAPI integration. - Established routing structure in `api/routes/__init__.py` and `api/routes/pally.py` for handling payment callbacks. - Developed billing handlers in `bot/handlers/billing.py` and `bot/handlers/buy.py` for subscription management. - Introduced state management for user interactions in `bot/states/`. - Created user interface elements in `bot/keyboards/` for navigation and payment processing. - Set up middleware for dependency injection in `bot/middlewares/di.py`. - Added support for user commands and interactions in `bot/handlers/common.py` and `bot/handlers/support.py`. - Implemented logging and error handling throughout the bot's functionality. - Created entry point script for API server in `entrypoints/api.sh`.
59 lines
763 B
TOML
59 lines
763 B
TOML
[tool.black]
|
|
line-length = 100
|
|
target-version = ['py313']
|
|
include = '\.pyi?$'
|
|
extend-exclude = '''
|
|
/(
|
|
# Исключаем стандартные папки
|
|
\.git
|
|
| \.venv
|
|
| build
|
|
| dist
|
|
| alembic
|
|
)/
|
|
'''
|
|
|
|
[tool.ruff]
|
|
# Базовые настройки
|
|
line-length = 100
|
|
target-version = "py313"
|
|
|
|
# Исключаем alembic полностью
|
|
exclude = [
|
|
".git",
|
|
".venv",
|
|
"build",
|
|
"dist",
|
|
"alembic",
|
|
]
|
|
|
|
[tool.ruff.lint]
|
|
select = [
|
|
"E",
|
|
"W",
|
|
"F",
|
|
"I",
|
|
"N",
|
|
"UP",
|
|
"B",
|
|
"SIM",
|
|
"PL",
|
|
"RUF",
|
|
"TID",
|
|
"PT",
|
|
]
|
|
|
|
ignore = [
|
|
"E501",
|
|
"D100",
|
|
"D104",
|
|
"G004",
|
|
"PLR0913",
|
|
"RUF001",
|
|
"RUF002",
|
|
"RUF003",
|
|
"B008"
|
|
]
|
|
|
|
[tool.ruff.lint.isort]
|
|
combine-as-imports = true |