Skip to content

Commit c9e076d

Browse files
committed
fix: remove ruff errors (#62)
1 parent 6249a20 commit c9e076d

File tree

7 files changed

+3
-9
lines changed

7 files changed

+3
-9
lines changed

src/ttt/application/game/game/make_ai_move_in_game.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from ttt.application.game.game.ports.game_views import GameViews
1515
from ttt.application.game.game.ports.games import Games
1616
from ttt.application.user.common.ports.user_locks import UserLocks
17-
from ttt.application.user.common.ports.users import Users
1817
from ttt.entities.core.game.game import (
1918
AlreadyCompletedGameError,
2019
NotAiCurrentMoveError,

src/ttt/application/game/game/ports/game_views.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from abc import ABC, abstractmethod
2-
from uuid import UUID
32

43
from ttt.entities.core.game.game import Game
54

src/ttt/main/tg_bot/di.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from typing import Annotated, cast
44

55
from aiogram import Bot, Dispatcher
6-
from aiogram.fsm.context import FSMContext
76
from aiogram.fsm.storage.base import BaseStorage, DefaultKeyBuilder
87
from aiogram.fsm.storage.redis import RedisStorage
98
from aiogram.types import (

src/ttt/main/tg_bot/start_tg_bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async def start_tg_bot(container: AsyncContainer) -> None:
3939
logging.basicConfig(level=logging.INFO)
4040

4141
try:
42-
# await tasks(next_container)
42+
await tasks(next_container)
4343
await taskiq_bg_worker()
4444
await dp.start_polling(bot)
4545
finally:

src/ttt/presentation/tasks/matchmake_tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
from structlog.types import FilteringBoundLogger
55

66
from ttt.application.user.game.matchmake import Matchmake
7+
from ttt.infrastructure.dishka.next_container import NextContainer
78
from ttt.infrastructure.retrier import Retrier
89
from ttt.infrastructure.structlog.logger import unexpected_error_log
910
from ttt.presentation.tasks.task import Task
10-
from ttt.infrastructure.dishka.next_container import NextContainer
1111

1212

1313
@dataclass

src/ttt/presentation/tasks/task.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
from collections.abc import Callable
21
from typing import Any, Protocol
32

4-
from dishka.async_container import AsyncContextWrapper
5-
63
from ttt.infrastructure.dishka.next_container import NextContainer
74

85

src/ttt/presentation/tasks/unkillable_tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
from dataclasses import dataclass
33
from functools import partial
44

5+
from ttt.infrastructure.dishka.next_container import NextContainer
56
from ttt.presentation.tasks.task import Task
67
from ttt.presentation.unkillable_task_group import UnkillableTaskGroup
7-
from ttt.infrastructure.dishka.next_container import NextContainer
88

99

1010
@dataclass(frozen=True, unsafe_hash=False)

0 commit comments

Comments
 (0)