9a2aea038a
- Add pyproject.toml with uv and ruff configuration - Pin Python version to 3.13 via .python-version - Add Makefile commands: lint, format, fix - Apply ruff formatting to entire codebase - Remove unused imports (base64 in yookassa/simple_subscription) - Update .gitignore for new config files
26 lines
612 B
Python
26 lines
612 B
Python
from __future__ import annotations
|
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
|
|
class HealthFeatureFlags(BaseModel):
|
|
"""Флаги доступности функций административного API."""
|
|
|
|
monitoring: bool
|
|
maintenance: bool
|
|
reporting: bool
|
|
webhooks: bool
|
|
|
|
model_config = ConfigDict(extra='forbid')
|
|
|
|
|
|
class HealthCheckResponse(BaseModel):
|
|
"""Ответ на health-check административного API."""
|
|
|
|
status: str
|
|
api_version: str
|
|
bot_version: str | None
|
|
features: HealthFeatureFlags
|
|
|
|
model_config = ConfigDict(extra='forbid')
|