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
mypy
codespell src tests
bandit src tests
bandit -r src || exit 0
[no-cd]
[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
@router.post("/notifications/register-device")
@router.post("/notifications/register_device")
async def register_notification_device(
request: RegisterNotificationDeviceRequestModel,
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.notifications import NotificationServiceProvider
from template_project.web_api.ioc.oauth import OAuthClientProvider
from template_project.web_api.ioc.storage import StorageProvider
class DatabaseClearer:
@@ -83,7 +84,7 @@ def make_ioc(configuration: Configuration) -> AsyncContainer:
CryptographerProvider(),
OAuthClientProvider(),
NotificationServiceProvider(),
TestProvider(),
StorageProvider(),
validation_settings=STRICT_VALIDATION,
context={
ServerConfiguration: configuration.server,