fix: apply isort formatting to fix CI linting
Applied isort to properly sort all imports according to PEP8: - Standard library imports first - Third-party imports second - Local imports last - Alphabetical ordering within each group All tests still passing after import reordering.
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
Tool implementations for Gemini MCP Server
|
||||
"""
|
||||
|
||||
from .think_deeper import ThinkDeeperTool
|
||||
from .review_code import ReviewCodeTool
|
||||
from .debug_issue import DebugIssueTool
|
||||
from .analyze import AnalyzeTool
|
||||
from .debug_issue import DebugIssueTool
|
||||
from .review_code import ReviewCodeTool
|
||||
from .think_deeper import ThinkDeeperTool
|
||||
|
||||
__all__ = [
|
||||
"ThinkDeeperTool",
|
||||
|
||||
@@ -2,12 +2,15 @@
|
||||
Analyze tool - General-purpose code and file analysis
|
||||
"""
|
||||
|
||||
from typing import Dict, Any, List, Optional
|
||||
from typing import Any, Dict, List, Optional
|
||||
|
||||
from pydantic import Field
|
||||
from .base import BaseTool, ToolRequest
|
||||
|
||||
from config import MAX_CONTEXT_TOKENS, TEMPERATURE_ANALYTICAL
|
||||
from prompts import ANALYZE_PROMPT
|
||||
from utils import read_files, check_token_limit
|
||||
from config import TEMPERATURE_ANALYTICAL, MAX_CONTEXT_TOKENS
|
||||
from utils import check_token_limit, read_files
|
||||
|
||||
from .base import BaseTool, ToolRequest
|
||||
|
||||
|
||||
class AnalyzeRequest(ToolRequest):
|
||||
|
||||
@@ -3,10 +3,11 @@ Base class for all Gemini MCP tools
|
||||
"""
|
||||
|
||||
from abc import ABC, abstractmethod
|
||||
from typing import Dict, Any, List, Optional
|
||||
from pydantic import BaseModel, Field
|
||||
from typing import Any, Dict, List, Optional
|
||||
|
||||
import google.generativeai as genai
|
||||
from mcp.types import TextContent
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class ToolRequest(BaseModel):
|
||||
|
||||
@@ -2,12 +2,15 @@
|
||||
Debug Issue tool - Root cause analysis and debugging assistance
|
||||
"""
|
||||
|
||||
from typing import Dict, Any, List, Optional
|
||||
from typing import Any, Dict, List, Optional
|
||||
|
||||
from pydantic import Field
|
||||
from .base import BaseTool, ToolRequest
|
||||
|
||||
from config import MAX_CONTEXT_TOKENS, TEMPERATURE_ANALYTICAL
|
||||
from prompts import DEBUG_ISSUE_PROMPT
|
||||
from utils import read_files, check_token_limit
|
||||
from config import TEMPERATURE_ANALYTICAL, MAX_CONTEXT_TOKENS
|
||||
from utils import check_token_limit, read_files
|
||||
|
||||
from .base import BaseTool, ToolRequest
|
||||
|
||||
|
||||
class DebugIssueRequest(ToolRequest):
|
||||
|
||||
@@ -2,12 +2,15 @@
|
||||
Code Review tool - Comprehensive code analysis and review
|
||||
"""
|
||||
|
||||
from typing import Dict, Any, List, Optional
|
||||
from typing import Any, Dict, List, Optional
|
||||
|
||||
from pydantic import Field
|
||||
from .base import BaseTool, ToolRequest
|
||||
|
||||
from config import MAX_CONTEXT_TOKENS, TEMPERATURE_ANALYTICAL
|
||||
from prompts import REVIEW_CODE_PROMPT
|
||||
from utils import read_files, check_token_limit
|
||||
from config import TEMPERATURE_ANALYTICAL, MAX_CONTEXT_TOKENS
|
||||
from utils import check_token_limit, read_files
|
||||
|
||||
from .base import BaseTool, ToolRequest
|
||||
|
||||
|
||||
class ReviewCodeRequest(ToolRequest):
|
||||
|
||||
@@ -2,12 +2,15 @@
|
||||
Think Deeper tool - Extended reasoning and problem-solving
|
||||
"""
|
||||
|
||||
from typing import Dict, Any, List, Optional
|
||||
from typing import Any, Dict, List, Optional
|
||||
|
||||
from pydantic import Field
|
||||
from .base import BaseTool, ToolRequest
|
||||
|
||||
from config import MAX_CONTEXT_TOKENS, TEMPERATURE_CREATIVE
|
||||
from prompts import THINK_DEEPER_PROMPT
|
||||
from utils import read_files, check_token_limit
|
||||
from config import TEMPERATURE_CREATIVE, MAX_CONTEXT_TOKENS
|
||||
from utils import check_token_limit, read_files
|
||||
|
||||
from .base import BaseTool, ToolRequest
|
||||
|
||||
|
||||
class ThinkDeeperRequest(ToolRequest):
|
||||
|
||||
Reference in New Issue
Block a user