refactor: reorganize import statements for consistency across multiple files

This commit is contained in:
Artem Kashaev
2025-12-01 16:26:10 +05:00
parent 1dd7c2f2b8
commit d2c424c419
24 changed files with 62 additions and 50 deletions
+2 -1
View File
@@ -9,10 +9,11 @@ from collections.abc import Awaitable, Callable
from typing import Any
import redis.asyncio as redis
from app.core.config import settings
from redis.asyncio.client import Redis
from redis.exceptions import RedisError
from app.core.config import settings
logger = logging.getLogger(__name__)
+2 -1
View File
@@ -4,9 +4,10 @@ from __future__ import annotations
from collections.abc import AsyncGenerator
from app.core.config import settings
from sqlalchemy.ext.asyncio import AsyncSession, async_sessionmaker, create_async_engine
from app.core.config import settings
engine = create_async_engine(settings.database_url, echo=settings.sqlalchemy_echo)
AsyncSessionMaker = async_sessionmaker(bind=engine, expire_on_commit=False)
+2 -1
View File
@@ -4,9 +4,10 @@ from __future__ import annotations
import logging
from starlette.types import ASGIApp, Receive, Scope, Send
from app.core.cache import cache_manager
from app.core.config import settings
from starlette.types import ASGIApp, Receive, Scope, Send
logger = logging.getLogger(__name__)
+2 -1
View File
@@ -7,9 +7,10 @@ from datetime import datetime, timedelta, timezone
from typing import Any
import jwt
from app.core.config import settings
from passlib.context import CryptContext # type: ignore
from app.core.config import settings
class PasswordHasher:
"""Wraps passlib context to hash and verify secrets."""