Fix ruff and black
This commit is contained in:
parent
b0414cf6d0
commit
6ad818ff51
12 changed files with 51 additions and 51 deletions
|
|
@ -13,12 +13,12 @@ import logging
|
||||||
|
|
||||||
import httpx
|
import httpx
|
||||||
|
|
||||||
from .dynamic_response import DynamicResponse
|
|
||||||
from .endpoints import EndpointInfo
|
|
||||||
from ..auth import get_current_user_context
|
from ..auth import get_current_user_context
|
||||||
from ..auth.session import SessionManager
|
from ..auth.session import SessionManager
|
||||||
from ..config import settings
|
from ..config import settings
|
||||||
from ..monitoring.schema.schema_registry import schema_registry
|
from ..monitoring.schema.schema_registry import schema_registry
|
||||||
|
from .dynamic_response import DynamicResponse
|
||||||
|
from .endpoints import EndpointInfo
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,9 @@ where each API key can have its own GeoGuessr session.
|
||||||
import asyncio
|
import asyncio
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from ..config import settings
|
||||||
from .session import SessionManager, UserSession
|
from .session import SessionManager, UserSession
|
||||||
from .user_context import UserContext
|
from .user_context import UserContext
|
||||||
from ..config import settings
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,10 +18,10 @@ from datetime import UTC, datetime
|
||||||
|
|
||||||
import httpx
|
import httpx
|
||||||
|
|
||||||
|
from ...config import settings
|
||||||
|
from ..schema.schema_registry import SchemaRegistry, schema_registry
|
||||||
from .endpoint_definition import EndpointDefinition
|
from .endpoint_definition import EndpointDefinition
|
||||||
from .endpoint_monitoring_result import MonitoringResult
|
from .endpoint_monitoring_result import MonitoringResult
|
||||||
from ..schema.schema_registry import SchemaRegistry, schema_registry
|
|
||||||
from ...config import settings
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,9 +17,9 @@ from datetime import UTC, datetime
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from ...config import settings
|
||||||
from .endpoint_schema import EndpointSchema
|
from .endpoint_schema import EndpointSchema
|
||||||
from .schema_detector import SchemaDetector
|
from .schema_detector import SchemaDetector
|
||||||
from ...config import settings
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,11 +8,11 @@ dynamic data handling and LLM-friendly output formatting.
|
||||||
import logging
|
import logging
|
||||||
from dataclasses import dataclass, field
|
from dataclasses import dataclass, field
|
||||||
|
|
||||||
from .game_service import GameService
|
|
||||||
from .profile_service import ProfileService
|
|
||||||
from ..api import GeoGuessrClient
|
from ..api import GeoGuessrClient
|
||||||
from ..models import Game
|
from ..models import Game
|
||||||
from ..monitoring import schema_registry
|
from ..monitoring import schema_registry
|
||||||
|
from .game_service import GameService
|
||||||
|
from .profile_service import ProfileService
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,17 +2,17 @@
|
||||||
|
|
||||||
from mcp.server.fastmcp import FastMCP
|
from mcp.server.fastmcp import FastMCP
|
||||||
|
|
||||||
from .analysis_tools import register_analysis_tools
|
|
||||||
from .auth_tools import register_auth_tools
|
|
||||||
from .game_tools import register_game_tools
|
|
||||||
from .monitoring_tools import register_monitoring_tools
|
|
||||||
from .profile_tools import register_profile_tools
|
|
||||||
from ..api.geoguessr_client import GeoGuessrClient
|
from ..api.geoguessr_client import GeoGuessrClient
|
||||||
from ..auth.session import SessionManager
|
from ..auth.session import SessionManager
|
||||||
from ..config import settings
|
from ..config import settings
|
||||||
from ..services.analysis_service import AnalysisService
|
from ..services.analysis_service import AnalysisService
|
||||||
from ..services.game_service import GameService
|
from ..services.game_service import GameService
|
||||||
from ..services.profile_service import ProfileService
|
from ..services.profile_service import ProfileService
|
||||||
|
from .analysis_tools import register_analysis_tools
|
||||||
|
from .auth_tools import register_auth_tools
|
||||||
|
from .game_tools import register_game_tools
|
||||||
|
from .monitoring_tools import register_monitoring_tools
|
||||||
|
from .profile_tools import register_profile_tools
|
||||||
|
|
||||||
|
|
||||||
def register_all_tools(mcp: FastMCP) -> dict:
|
def register_all_tools(mcp: FastMCP) -> dict:
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@ offers asynchronous execution for efficient performance.
|
||||||
|
|
||||||
from mcp.server.fastmcp import FastMCP
|
from mcp.server.fastmcp import FastMCP
|
||||||
|
|
||||||
from .auth_tools import get_current_session_token
|
|
||||||
from ..services.analysis_service import AnalysisService
|
from ..services.analysis_service import AnalysisService
|
||||||
|
from .auth_tools import get_current_session_token
|
||||||
|
|
||||||
|
|
||||||
def register_analysis_tools(mcp: FastMCP, analysis_service: AnalysisService):
|
def register_analysis_tools(mcp: FastMCP, analysis_service: AnalysisService):
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@ Functions:
|
||||||
|
|
||||||
from mcp.server.fastmcp import FastMCP
|
from mcp.server.fastmcp import FastMCP
|
||||||
|
|
||||||
from .auth_tools import get_current_session_token
|
|
||||||
from ..services.game_service import GameService
|
from ..services.game_service import GameService
|
||||||
|
from .auth_tools import get_current_session_token
|
||||||
|
|
||||||
|
|
||||||
def register_game_tools(mcp: FastMCP, game_service: GameService):
|
def register_game_tools(mcp: FastMCP, game_service: GameService):
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@ evolution.
|
||||||
|
|
||||||
from mcp.server.fastmcp import FastMCP
|
from mcp.server.fastmcp import FastMCP
|
||||||
|
|
||||||
from .auth_tools import get_current_session_token
|
|
||||||
from ..monitoring import endpoint_monitor, schema_registry
|
from ..monitoring import endpoint_monitor, schema_registry
|
||||||
|
from .auth_tools import get_current_session_token
|
||||||
|
|
||||||
|
|
||||||
def register_monitoring_tools(mcp: FastMCP):
|
def register_monitoring_tools(mcp: FastMCP):
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,8 @@ from the underlying service API. Tools return structured data for easy consumpti
|
||||||
|
|
||||||
from mcp.server.fastmcp import FastMCP
|
from mcp.server.fastmcp import FastMCP
|
||||||
|
|
||||||
from .auth_tools import get_current_session_token
|
|
||||||
from ..services.profile_service import ProfileService
|
from ..services.profile_service import ProfileService
|
||||||
|
from .auth_tools import get_current_session_token
|
||||||
|
|
||||||
|
|
||||||
def register_profile_tools(mcp: FastMCP, profile_service: ProfileService):
|
def register_profile_tools(mcp: FastMCP, profile_service: ProfileService):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue