You've already forked RekomenciBackend
chore: some improvements
This commit is contained in:
@@ -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],
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user