chore: some improvements

This commit is contained in:
ITQ
2025-11-21 12:37:07 +03:00
parent 46f532060d
commit 3eb4666eff
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ lint:
ruff check ruff check
mypy mypy
codespell src tests codespell src tests
bandit src tests bandit -r src || exit 0
[no-cd] [no-cd]
[group("Formatters")] [group("Formatters")]
@@ -39,7 +39,7 @@ async def send_notification(
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="Notification device not found") from error raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="Notification device not found") from error
@router.post("/notifications/register-device") @router.post("/notifications/register_device")
async def register_notification_device( async def register_notification_device(
request: RegisterNotificationDeviceRequestModel, request: RegisterNotificationDeviceRequestModel,
interactor: FromDishka[RegisterNotificationDeviceInteractor], interactor: FromDishka[RegisterNotificationDeviceInteractor],
+2 -1
View File
@@ -34,6 +34,7 @@ from template_project.web_api.ioc.idp import IdPProvider
from template_project.web_api.ioc.interactor import InteractorProvider from template_project.web_api.ioc.interactor import InteractorProvider
from template_project.web_api.ioc.notifications import NotificationServiceProvider from template_project.web_api.ioc.notifications import NotificationServiceProvider
from template_project.web_api.ioc.oauth import OAuthClientProvider from template_project.web_api.ioc.oauth import OAuthClientProvider
from template_project.web_api.ioc.storage import StorageProvider
class DatabaseClearer: class DatabaseClearer:
@@ -83,7 +84,7 @@ def make_ioc(configuration: Configuration) -> AsyncContainer:
CryptographerProvider(), CryptographerProvider(),
OAuthClientProvider(), OAuthClientProvider(),
NotificationServiceProvider(), NotificationServiceProvider(),
TestProvider(), StorageProvider(),
validation_settings=STRICT_VALIDATION, validation_settings=STRICT_VALIDATION,
context={ context={
ServerConfiguration: configuration.server, ServerConfiguration: configuration.server,