Skip to content

Commit 55bcbd3

Browse files
Copilotmnriem
andauthored
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
1 parent 978addc commit 55bcbd3

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

src/specify_cli/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2505,7 +2505,7 @@ def agent_info(
25052505
if resolved.source == "catalog":
25062506
source_display = f"catalog — {resolved.path}"
25072507
elif resolved.source == "embedded":
2508-
source_display = f"embedded (bundled in specify-cli wheel)"
2508+
source_display = "embedded (bundled in specify-cli wheel)"
25092509

25102510
info_table.add_row("Source", source_display)
25112511
if resolved.overrides:
@@ -2871,8 +2871,8 @@ def agent_add(
28712871
console.print(f"[green]✓[/green] Installed '{manifest.id}' ({manifest.name}) from {source}")
28722872
else:
28732873
# Catalog fetch — placeholder for future catalog integration
2874-
console.print(f"[yellow]Catalog fetch not yet implemented.[/yellow]")
2875-
console.print(f"[dim]Use --from <path> to install from a local directory.[/dim]")
2874+
console.print("[yellow]Catalog fetch not yet implemented.[/yellow]")
2875+
console.print("[dim]Use --from <path> to install from a local directory.[/dim]")
28762876
raise typer.Exit(1)
28772877

28782878

src/specify_cli/agent_pack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ def remove_tracked_files(
563563
modified = check_modified_files(project_path, agent_id)
564564
if modified:
565565
raise AgentFileModifiedError(
566-
f"The following agent files have been modified since installation:\n"
566+
"The following agent files have been modified since installation:\n"
567567
+ "\n".join(f" {p}" for p in modified)
568568
+ "\nUse --force to remove them anyway."
569569
)

tests/test_agent_pack.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"""
66

77
import json
8-
import shutil
98
import textwrap
109
from pathlib import Path
1110

@@ -22,7 +21,6 @@
2221
AgentPackError,
2322
ManifestValidationError,
2423
PackResolutionError,
25-
ResolvedPack,
2624
_manifest_path,
2725
_sha256,
2826
check_modified_files,
@@ -548,9 +546,8 @@ def test_each_embedded_pack_validates(self):
548546
manifest_file = child / MANIFEST_FILENAME
549547
if not manifest_file.is_file():
550548
continue
551-
# Should not raise
552-
warnings = validate_pack(child)
553-
# Warnings are acceptable; hard errors are not
549+
# Should not raise — warnings are acceptable; hard errors are not
550+
validate_pack(child)
554551

555552

556553
# ===================================================================

0 commit comments

Comments
 (0)