fix: resolve all ruff lint errors (F401, F841, E741, I001)

Remove unused imports, fix unsorted import blocks, rename ambiguous
variable, and remove unused local variable assignment.
This commit is contained in:
2026-03-12 01:12:30 -07:00
parent cf5f8a0ba8
commit 372213a2b9
9 changed files with 18 additions and 27 deletions
@@ -18,13 +18,11 @@ Scope: File → Package → Repo
"""
import difflib
import json
import os
from dataclasses import dataclass, field
from pathlib import Path
from typing import Any, ClassVar, Literal
from mcp.server import FastMCP
from mcp.server.fastmcp import Context as MCPContext
from hanzo_tools.core import (
@@ -720,7 +718,7 @@ All operations are PURE - safe to cache and parallelize.
if not full_path.exists():
raise NotFoundError(f"File not found: {path}")
text = full_path.read_text()
export_lines = [l.strip() for l in text.splitlines() if l.strip().startswith(("export ", "pub ", "__all__"))]
export_lines = [line.strip() for line in text.splitlines() if line.strip().startswith(("export ", "pub ", "__all__"))]
return {"uri": str(full_path), "exports": export_lines, "count": len(export_lines)}
@self.action("types", "Find type definitions in file")