Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
Empty file.
4 changes: 2 additions & 2 deletions src/ttt/application/game/game/cancel_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
from ttt.application.common.ports.map import Map
from ttt.application.common.ports.transaction import Transaction
from ttt.application.common.ports.uuids import UUIDs
from ttt.application.game.common.ports.game_views import GameViews
from ttt.application.game.common.ports.games import Games
from ttt.application.game.game.ports.game_log import GameLog
from ttt.application.game.game.ports.game_views import GameViews
from ttt.application.game.game.ports.games import Games
from ttt.entities.core.game.game import AlreadyCompletedGameError
from ttt.entities.core.user.location import UserLocation
from ttt.entities.core.user.user import User
Expand Down
6 changes: 3 additions & 3 deletions src/ttt/application/game/game/make_move_in_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
from ttt.application.common.ports.randoms import Randoms
from ttt.application.common.ports.transaction import Transaction
from ttt.application.common.ports.uuids import UUIDs
from ttt.application.game.common.ports.game_ai_gateway import GameAiGateway
from ttt.application.game.common.ports.game_views import GameViews
from ttt.application.game.common.ports.games import Games
from ttt.application.game.game.ports.game_ai_gateway import GameAiGateway
from ttt.application.game.game.ports.game_log import GameLog
from ttt.application.game.game.ports.game_views import GameViews
from ttt.application.game.game.ports.games import Games
from ttt.application.user.common.ports.users import Users
from ttt.entities.core.game.cell import AlreadyFilledCellError
from ttt.entities.core.game.game import (
Expand Down
8 changes: 4 additions & 4 deletions src/ttt/application/game/game/start_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
from ttt.application.common.ports.map import Map
from ttt.application.common.ports.transaction import Transaction
from ttt.application.common.ports.uuids import UUIDs
from ttt.application.game.common.ports.game_starting_queue import (
from ttt.application.game.game.ports.game_log import GameLog
from ttt.application.game.game.ports.game_starting_queue import (
GameStartingQueue,
)
from ttt.application.game.common.ports.game_views import GameViews
from ttt.application.game.common.ports.games import Games
from ttt.application.game.game.ports.game_log import GameLog
from ttt.application.game.game.ports.game_views import GameViews
from ttt.application.game.game.ports.games import Games
from ttt.application.user.common.ports.user_views import CommonUserViews
from ttt.application.user.common.ports.users import Users
from ttt.entities.core.game.game import UsersAlreadyInGameError, start_game
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
from ttt.application.common.ports.randoms import Randoms
from ttt.application.common.ports.transaction import Transaction
from ttt.application.common.ports.uuids import UUIDs
from ttt.application.game.common.ports.game_ai_gateway import GameAiGateway
from ttt.application.game.common.ports.game_starting_queue import (
from ttt.application.game.game.ports.game_ai_gateway import GameAiGateway
from ttt.application.game.game.ports.game_log import GameLog
from ttt.application.game.game.ports.game_starting_queue import (
GameStartingQueue,
)
from ttt.application.game.common.ports.game_views import GameViews
from ttt.application.game.common.ports.games import Games
from ttt.application.game.game.ports.game_log import GameLog
from ttt.application.game.game.ports.game_views import GameViews
from ttt.application.game.game.ports.games import Games
from ttt.application.user.common.ports.user_views import CommonUserViews
from ttt.application.user.common.ports.users import Users
from ttt.entities.core.game.ai import AiType
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from dataclasses import dataclass

from ttt.application.game.common.ports.game_views import GameViews
from ttt.application.game.game.ports.game_log import GameLog
from ttt.application.game.game.ports.game_views import GameViews
from ttt.entities.core.user.location import UserLocation


Expand Down
6 changes: 3 additions & 3 deletions src/ttt/application/game/game/wait_game.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from dataclasses import dataclass

from ttt.application.common.ports.transaction import Transaction
from ttt.application.game.common.ports.game_starting_queue import (
from ttt.application.game.game.ports.game_log import GameLog
from ttt.application.game.game.ports.game_starting_queue import (
GameStartingQueue,
)
from ttt.application.game.common.ports.game_views import GameViews
from ttt.application.game.game.ports.game_log import GameLog
from ttt.application.game.game.ports.game_views import GameViews
from ttt.application.user.common.ports.user_views import CommonUserViews
from ttt.application.user.common.ports.users import Users
from ttt.entities.core.user.location import UserLocation
Expand Down
Empty file.
2 changes: 1 addition & 1 deletion src/ttt/infrastructure/adapters/game_ai_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import cast
from uuid import UUID

from ttt.application.game.common.ports.game_ai_gateway import GameAiGateway
from ttt.application.game.game.ports.game_ai_gateway import GameAiGateway
from ttt.entities.core.game.ai import Ai, AiType
from ttt.entities.core.game.game import Game
from ttt.infrastructure.openai.gemini import Gemini
Expand Down
2 changes: 1 addition & 1 deletion src/ttt/infrastructure/adapters/game_starting_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from pydantic import TypeAdapter

from ttt.application.game.common.ports.game_starting_queue import (
from ttt.application.game.game.ports.game_starting_queue import (
GameStartingQueue,
GameStartingQueuePush,
)
Expand Down
2 changes: 1 addition & 1 deletion src/ttt/infrastructure/adapters/games.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from sqlalchemy import select
from sqlalchemy.ext.asyncio import AsyncSession

from ttt.application.game.common.ports.games import Games
from ttt.application.game.game.ports.games import Games
from ttt.entities.core.game.game import Game
from ttt.infrastructure.sqlalchemy.tables import TableGame, TableUser

Expand Down
8 changes: 4 additions & 4 deletions src/ttt/main/aiogram/di.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
from structlog.types import FilteringBoundLogger

from ttt.application.common.ports.emojis import Emojis
from ttt.application.game.common.ports.game_views import GameViews
from ttt.application.game.game.cancel_game import CancelGame
from ttt.application.game.game.make_move_in_game import MakeMoveInGame
from ttt.application.game.game.ports.game_views import GameViews
from ttt.application.game.game.start_game import StartGame
from ttt.application.game.game.wait_game import WaitGame
from ttt.application.game.game_with_ai.start_game_with_ai import StartGameWithAi
from ttt.application.game.game_with_ai.wait_ai_type_to_start_game_with_ai import ( # noqa: E501
from ttt.application.game.game.start_game_with_ai import StartGameWithAi
from ttt.application.game.game.wait_ai_type_to_start_game_with_ai import (
WaitAiTypeToStartGameWithAi,
)
from ttt.application.game.game.wait_game import WaitGame
from ttt.application.user.common.dto.common import PaidStarsPurchasePayment
from ttt.application.user.common.ports.stars_purchase_payment_gateway import (
StarsPurchasePaymentGateway,
Expand Down
8 changes: 4 additions & 4 deletions src/ttt/main/common/di.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
from ttt.application.common.ports.randoms import Randoms
from ttt.application.common.ports.transaction import Transaction
from ttt.application.common.ports.uuids import UUIDs
from ttt.application.game.common.ports.game_ai_gateway import GameAiGateway
from ttt.application.game.common.ports.game_starting_queue import (
from ttt.application.game.game.ports.game_ai_gateway import GameAiGateway
from ttt.application.game.game.ports.game_log import GameLog
from ttt.application.game.game.ports.game_starting_queue import (
GameStartingQueue,
)
from ttt.application.game.common.ports.games import Games
from ttt.application.game.game.ports.game_log import GameLog
from ttt.application.game.game.ports.games import Games
from ttt.application.user.common.ports.paid_stars_purchase_payment_inbox import ( # noqa: E501
PaidStarsPurchasePaymentInbox,
)
Expand Down
2 changes: 1 addition & 1 deletion src/ttt/presentation/adapters/game_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from aiogram import Bot
from aiogram.fsm.storage.base import BaseStorage

from ttt.application.game.common.ports.game_views import GameViews
from ttt.application.game.game.ports.game_views import GameViews
from ttt.entities.core.game.game import Game
from ttt.entities.core.user.location import UserGameLocation, UserLocation
from ttt.infrastructure.background_tasks import BackgroundTasks
Expand Down
6 changes: 3 additions & 3 deletions src/ttt/presentation/aiogram/game/routes/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
from ttt.presentation.aiogram.game.routes.game.make_move_in_game import (
make_move_in_game_router,
)
from ttt.presentation.aiogram.game.routes.game.wait_game import wait_game_router
from ttt.presentation.aiogram.game.routes.game_with_ai.start_game_with_ai import ( # noqa: E501
from ttt.presentation.aiogram.game.routes.game.start_game_with_ai import (
start_game_with_ai_router,
)
from ttt.presentation.aiogram.game.routes.game_with_ai.wait_ai_type_to_start_game_with_ai import ( # noqa: E501
from ttt.presentation.aiogram.game.routes.game.wait_ai_type_to_start_game_with_ai import ( # noqa: E501
wait_ai_type_to_start_game_with_ai_router,
)
from ttt.presentation.aiogram.game.routes.game.wait_game import wait_game_router


game_routers = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from aiogram.types import CallbackQuery, Message
from dishka.integrations.aiogram import FromDishka, inject

from ttt.application.game.game_with_ai.start_game_with_ai import (
from ttt.application.game.game.start_game_with_ai import (
StartGameWithAi,
)
from ttt.entities.core.game.ai import AiType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from aiogram.types import Message
from dishka.integrations.aiogram import FromDishka, inject

from ttt.application.game.game_with_ai.wait_ai_type_to_start_game_with_ai import ( # noqa: E501
from ttt.application.game.game.wait_ai_type_to_start_game_with_ai import (
WaitAiTypeToStartGameWithAi,
)
from ttt.entities.core.user.location import UserLocation
Expand Down
Empty file.