chore: clean up unused imports and sort import blocks

Remove unused imports and organize import statements to pass ruff
linting checks:

- mcp_server/feature_mcp.py: Remove unused imports (are_dependencies_satisfied,
  get_blocking_dependencies) and alphabetize import block
- parallel_orchestrator.py: Remove unused imports (time, Awaitable) and
  add blank lines between import groups per PEP 8
- server/routers/features.py: Alphabetize imports in dependency resolver

These changes were identified by running `ruff check .` and auto-fixed
with `--fix` flag.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Auto
2026-01-17 15:05:25 +02:00
parent 126151dccd
commit 64b65311fe
3 changed files with 7 additions and 8 deletions

View File

@@ -37,14 +37,12 @@ from sqlalchemy.sql.expression import func
sys.path.insert(0, str(Path(__file__).parent.parent))
from api.database import Feature, create_database
from api.migration import migrate_json_to_sqlite
from api.dependency_resolver import (
would_create_circular_dependency,
are_dependencies_satisfied,
get_blocking_dependencies,
compute_scheduling_scores,
MAX_DEPENDENCIES_PER_FEATURE,
compute_scheduling_scores,
would_create_circular_dependency,
)
from api.migration import migrate_json_to_sqlite
# Configuration from environment
PROJECT_DIR = Path(os.environ.get("PROJECT_DIR", ".")).resolve()

View File

@@ -15,9 +15,8 @@ import os
import subprocess
import sys
import threading
import time
from pathlib import Path
from typing import Callable, Awaitable
from typing import Callable
import psutil
@@ -499,7 +498,9 @@ async def run_parallel_orchestrator(
def main():
"""Main entry point for parallel orchestration."""
import argparse
from dotenv import load_dotenv
from registry import DEFAULT_MODEL, get_project_path
load_dotenv()

View File

@@ -575,7 +575,7 @@ def _get_dependency_resolver():
root = Path(__file__).parent.parent.parent
if str(root) not in sys.path:
sys.path.insert(0, str(root))
from api.dependency_resolver import would_create_circular_dependency, MAX_DEPENDENCIES_PER_FEATURE
from api.dependency_resolver import MAX_DEPENDENCIES_PER_FEATURE, would_create_circular_dependency
return would_create_circular_dependency, MAX_DEPENDENCIES_PER_FEATURE