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:
Fahad
2025-06-08 22:32:27 +04:00
parent 1aa19548d1
commit c03af1629f
18 changed files with 64 additions and 67 deletions

View File

@@ -2,8 +2,8 @@
Pytest configuration for Gemini MCP Server tests
"""
import sys
import os
import sys
from pathlib import Path
# Ensure the parent directory is in the Python path for imports

View File

@@ -2,17 +2,9 @@
Tests for configuration
"""
from config import (
__version__,
__updated__,
__author__,
DEFAULT_MODEL,
MAX_CONTEXT_TOKENS,
TEMPERATURE_ANALYTICAL,
TEMPERATURE_BALANCED,
TEMPERATURE_CREATIVE,
TOOL_TRIGGERS,
)
from config import (DEFAULT_MODEL, MAX_CONTEXT_TOKENS, TEMPERATURE_ANALYTICAL,
TEMPERATURE_BALANCED, TEMPERATURE_CREATIVE, TOOL_TRIGGERS,
__author__, __updated__, __version__)
class TestConfig:

View File

@@ -2,11 +2,12 @@
Tests for the main server functionality
"""
import pytest
import json
from unittest.mock import Mock, patch
from server import handle_list_tools, handle_call_tool
import pytest
from server import handle_call_tool, handle_list_tools
class TestServerTools:

View File

@@ -2,10 +2,11 @@
Tests for individual tool implementations
"""
import pytest
from unittest.mock import Mock, patch
from tools import ThinkDeeperTool, ReviewCodeTool, DebugIssueTool, AnalyzeTool
import pytest
from tools import AnalyzeTool, DebugIssueTool, ReviewCodeTool, ThinkDeeperTool
class TestThinkDeeperTool:

View File

@@ -2,12 +2,8 @@
Tests for utility functions
"""
from utils import (
read_file_content,
read_files,
estimate_tokens,
check_token_limit,
)
from utils import (check_token_limit, estimate_tokens, read_file_content,
read_files)
class TestFileUtils: