chore: clear unused imports
This commit is contained in:
@@ -2,7 +2,6 @@ from abc import ABC,abstractmethod
|
||||
from decimal import Decimal
|
||||
|
||||
from src.application.domain.entities.order import OrderEntity
|
||||
from src.application.domain.enums import OrderStatus
|
||||
|
||||
|
||||
class IOrderRepository(ABC):
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
from __future__ import annotations
|
||||
from dataclasses import dataclass
|
||||
from decimal import Decimal
|
||||
from src.application.abstractions import IUnitOfWork
|
||||
from src.application.contracts import ILogger
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
from src.application.abstractions import IUnitOfWork
|
||||
from src.application.contracts import ILogger
|
||||
from src.application.domain.entities.organization import LegalEntityEntity
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
from src.application.abstractions import IUnitOfWork
|
||||
from src.application.contracts import ILogger
|
||||
from src.application.domain.entities.user import UserEntity
|
||||
from src.application.domain.enums.account_type import AccountType
|
||||
from src.infrastructure.database.decorators import transactional
|
||||
|
||||
|
||||
|
||||
@@ -2,8 +2,6 @@ from __future__ import annotations
|
||||
|
||||
from dataclasses import dataclass
|
||||
from datetime import datetime
|
||||
from decimal import Decimal
|
||||
from typing import Any
|
||||
|
||||
@dataclass
|
||||
class PartySearchEntity:
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
from __future__ import annotations
|
||||
from datetime import datetime
|
||||
from decimal import Decimal
|
||||
from sqlalchemy import DateTime, Enum as SAEnum, ForeignKey, Numeric, String, Text
|
||||
from sqlalchemy.orm import Mapped, mapped_column
|
||||
|
||||
@@ -5,7 +5,7 @@ from datetime import datetime
|
||||
from fastapi import status
|
||||
from sqlalchemy import func, select, update
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
from sqlalchemy.exc import IntegrityError, SQLAlchemyError
|
||||
from sqlalchemy.exc import SQLAlchemyError
|
||||
|
||||
from src.application.abstractions.repositories import IAdminUserRepository
|
||||
from src.application.contracts import ILogger
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from __future__ import annotations
|
||||
from dataclasses import replace
|
||||
from datetime import datetime, timezone
|
||||
from decimal import Decimal
|
||||
from sqlalchemy import desc, select, or_, extract, func
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
@@ -2,7 +2,6 @@ from __future__ import annotations
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
from fastapi import status
|
||||
from sqlalchemy import func, or_, select
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
from sqlalchemy.exc import IntegrityError, SQLAlchemyError
|
||||
|
||||
@@ -2,12 +2,10 @@ from __future__ import annotations
|
||||
|
||||
from sqlalchemy import select
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
from sqlalchemy.exc import IntegrityError, SQLAlchemyError
|
||||
|
||||
from src.application.abstractions.repositories import IWalletRepository
|
||||
from src.application.contracts import ILogger
|
||||
from src.application.domain.entities.user import WalletEntity
|
||||
from src.application.domain.exceptions import ApplicationException
|
||||
from src.infrastructure.database.models import WalletModel
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from fastapi import APIRouter, Depends, Request, Query, status
|
||||
|
||||
from src.application.domain.dto import AdminAuthContext
|
||||
from src.presentation.decorators.admin_auth import require_admin_access, require_admin_role
|
||||
from src.presentation.decorators.admin_auth import require_admin_access
|
||||
from src.presentation.dependencies.commands import (
|
||||
get_get_purchase_analytics_for_year_command,
|
||||
get_get_orders_analytics_for_year_command,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from fastapi import APIRouter, Depends, Request, Query, status
|
||||
from fastapi import APIRouter, Depends, Query
|
||||
|
||||
from src.application.domain.dto import AdminAuthContext
|
||||
from src.presentation.decorators.admin_auth import require_admin_access, require_admin_role
|
||||
@@ -10,7 +10,6 @@ from src.presentation.dependencies.commands import (
|
||||
from src.presentation.schemas.mappers import order_to_response
|
||||
from src.presentation.schemas.order import (
|
||||
OrdersResponse,
|
||||
OrderResponse,
|
||||
OrdersByDateResponse,
|
||||
OrderDetailResponse,
|
||||
)
|
||||
|
||||
@@ -8,7 +8,6 @@ from src.application.commands import (
|
||||
GetOrganizationSecretKeysCommand,
|
||||
ListOrganizationWalletsCommand,
|
||||
ListOrganizationsCommand,
|
||||
SearchPartiesCommand,
|
||||
UpdateOrganizationCommand,
|
||||
)
|
||||
from src.application.domain.dto import AdminAuthContext
|
||||
@@ -21,29 +20,24 @@ from src.presentation.dependencies.commands import (
|
||||
get_get_organization_secret_keys_command,
|
||||
get_list_organization_wallets_command,
|
||||
get_list_organizations_command,
|
||||
get_search_parties_command,
|
||||
get_update_organization_command,
|
||||
)
|
||||
from src.presentation.schemas.mappers import (
|
||||
create_wallets_to_response,
|
||||
mnemonic_to_response,
|
||||
organization_to_response,
|
||||
party_search_to_response,
|
||||
secret_key_to_response,
|
||||
wallet_to_response,
|
||||
)
|
||||
from src.presentation.schemas.organization import (
|
||||
CreateOrganizationRequest,
|
||||
OrganizationListResponse,
|
||||
DocumentResponse,
|
||||
OrganizationResponse,
|
||||
UpdateOrganizationRequest,
|
||||
)
|
||||
from src.presentation.schemas.entity import (
|
||||
CreateWalletsResponse,
|
||||
MnemonicResponse,
|
||||
PurchaseRequestResponse,
|
||||
PurchaseRequestListResponse,
|
||||
SecretKeyResponse,
|
||||
WalletResponse,
|
||||
)
|
||||
|
||||
@@ -16,7 +16,6 @@ from src.presentation.dependencies.commands import (
|
||||
from src.presentation.schemas.mappers import (
|
||||
mnemonic_to_response,
|
||||
user_to_response,
|
||||
party_search_to_response,
|
||||
secret_key_to_response,
|
||||
wallet_to_response,
|
||||
order_to_response,
|
||||
@@ -26,9 +25,7 @@ from src.presentation.schemas.user import (
|
||||
UserListResponse,
|
||||
)
|
||||
from src.presentation.schemas.entity import (
|
||||
PartySearchResponse,
|
||||
MnemonicResponse,
|
||||
PartySearchListResponse,
|
||||
SecretKeyResponse,
|
||||
WalletResponse,
|
||||
)
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from decimal import Decimal
|
||||
from typing import Any
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
from __future__ import annotations
|
||||
from urllib import response
|
||||
|
||||
from src.application.domain.entities.organization import (
|
||||
LegalEntityEntity,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from decimal import Decimal
|
||||
from pydantic import BaseModel,Field
|
||||
from pydantic import BaseModel
|
||||
from src.application.domain.enums import OrderStatus
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from decimal import Decimal
|
||||
from typing import Any
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import re
|
||||
|
||||
from pydantic import BaseModel, field_validator
|
||||
from src.application.domain.password_policy import validate_password_strength
|
||||
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from decimal import Decimal
|
||||
from typing import Any
|
||||
|
||||
from datetime import date, datetime
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
Reference in New Issue
Block a user