From 4ac902cf3b6ceacaf43e73e8189159f3c5888863 Mon Sep 17 00:00:00 2001 From: ITQ Date: Thu, 20 Nov 2025 19:08:11 +0300 Subject: [PATCH] chore: small improvements --- .justfile | 1 - src/template_project/py.typed | 0 src/template_project/web_api/routes/auth.py | 2 +- src/template_project/web_api/routes/healthcheck.py | 2 +- src/template_project/web_api/routes/profile.py | 2 +- tests/web_api/ioc.py | 1 + 6 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 src/template_project/py.typed diff --git a/.justfile b/.justfile index dfad4ad..ab6643e 100644 --- a/.justfile +++ b/.justfile @@ -29,7 +29,6 @@ tests: just up docker compose --profile migrations --profile tests up tests --remove-orphans --abort-on-container-exit - coverage report # ========= # > Lints diff --git a/src/template_project/py.typed b/src/template_project/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/src/template_project/web_api/routes/auth.py b/src/template_project/web_api/routes/auth.py index 6df9cbd..7aa06d2 100644 --- a/src/template_project/web_api/routes/auth.py +++ b/src/template_project/web_api/routes/auth.py @@ -14,7 +14,7 @@ from template_project.application.auth_identity.interactors.sign_in import SignI from template_project.application.auth_identity.interactors.sign_up import SignUpInteractor from template_project.application.common.containers import SecretString -router = APIRouter(route_class=DishkaRoute) +router = APIRouter(route_class=DishkaRoute, tags=["Auth"]) class EmailSignUpRequest(BaseModel): diff --git a/src/template_project/web_api/routes/healthcheck.py b/src/template_project/web_api/routes/healthcheck.py index fd07ee3..a459564 100644 --- a/src/template_project/web_api/routes/healthcheck.py +++ b/src/template_project/web_api/routes/healthcheck.py @@ -2,7 +2,7 @@ from dishka.integrations.fastapi import DishkaRoute from fastapi import APIRouter from pydantic import BaseModel -router = APIRouter(route_class=DishkaRoute) +router = APIRouter(route_class=DishkaRoute, tags=["Health"]) class HealthcheckResponse(BaseModel): diff --git a/src/template_project/web_api/routes/profile.py b/src/template_project/web_api/routes/profile.py index 5c4adc7..ef947dc 100644 --- a/src/template_project/web_api/routes/profile.py +++ b/src/template_project/web_api/routes/profile.py @@ -12,7 +12,7 @@ from template_project.application.user.profile.interactors.patch_profile import ) security = HTTPBearer() -router = APIRouter(route_class=DishkaRoute, dependencies=[Depends(security)]) +router = APIRouter(route_class=DishkaRoute, tags=["Profile"], dependencies=[Depends(security)]) class GetProfileResponse(BaseModel): diff --git a/tests/web_api/ioc.py b/tests/web_api/ioc.py index 3ad60aa..a11268c 100644 --- a/tests/web_api/ioc.py +++ b/tests/web_api/ioc.py @@ -56,6 +56,7 @@ class DatabaseClearer: END $$; """), ) + await self._session.commit() class TestProvider(Provider):