fix: resolve all ruff check failures (F541 f-string placeholders, F401 unused imports, F841 unused variable)

Co-authored-by: mnriem <15701806+mnriem@users.noreply.github.com>
Agent-Logs-Url: https://github.com/github/spec-kit/sessions/e19bd25e-f084-4f38-85b6-8105cbb50494
This commit is contained in:
copilot-swe-agent[bot]
2026-03-23 13:36:36 +00:00
committed by GitHub
parent 978addc390
commit 55bcbd3977
3 changed files with 6 additions and 9 deletions

View File

@@ -2505,7 +2505,7 @@ def agent_info(
if resolved.source == "catalog":
source_display = f"catalog — {resolved.path}"
elif resolved.source == "embedded":
source_display = f"embedded (bundled in specify-cli wheel)"
source_display = "embedded (bundled in specify-cli wheel)"
info_table.add_row("Source", source_display)
if resolved.overrides:
@@ -2871,8 +2871,8 @@ def agent_add(
console.print(f"[green]✓[/green] Installed '{manifest.id}' ({manifest.name}) from {source}")
else:
# Catalog fetch — placeholder for future catalog integration
console.print(f"[yellow]Catalog fetch not yet implemented.[/yellow]")
console.print(f"[dim]Use --from <path> to install from a local directory.[/dim]")
console.print("[yellow]Catalog fetch not yet implemented.[/yellow]")
console.print("[dim]Use --from <path> to install from a local directory.[/dim]")
raise typer.Exit(1)

View File

@@ -563,7 +563,7 @@ def remove_tracked_files(
modified = check_modified_files(project_path, agent_id)
if modified:
raise AgentFileModifiedError(
f"The following agent files have been modified since installation:\n"
"The following agent files have been modified since installation:\n"
+ "\n".join(f" {p}" for p in modified)
+ "\nUse --force to remove them anyway."
)