Skip to content

Commit a50e779

Browse files
tbitcsoz-agent
andcommitted
fix: ruff E501 and mypy unused-ignore in esdb rollback and skills_builder
- cli.py:8720 wrap console.print for rollback message (E501) - skills_builder.py:139 wrap has_ollama bool expression (E501) - skills_builder.py:145 remove unused type: ignore[import] comment Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent 4cf0d81 commit a50e779

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/specsmith/cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8717,7 +8717,9 @@ def esdb_rollback_cmd(project_dir: str, steps: int, as_json: bool) -> None:
87178717
if as_json:
87188718
click.echo(_json.dumps(result, indent=2))
87198719
else:
8720-
console.print(f"[green]\u2714[/green] Restored from backup: [bold]{backup_path.name}[/bold]")
8720+
console.print(
8721+
f"[green]\u2714[/green] Restored from backup: [bold]{backup_path.name}[/bold]"
8722+
)
87218723
console.print(f" Requirements: {len(reqs)} \u00b7 Test cases: {len(tests)}")
87228724

87238725

src/specsmith/skills_builder.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,15 @@ def _build_skill_with_llm(description: str, tags: list[str]) -> SkillSpec | None
136136
# Detect whether any provider is configured.
137137
has_anthropic = bool(os.environ.get("ANTHROPIC_API_KEY"))
138138
has_openai = bool(os.environ.get("OPENAI_API_KEY"))
139-
has_ollama = bool(os.environ.get("OLLAMA_HOST") or os.environ.get("SPECSMITH_PROVIDER") == "ollama")
139+
has_ollama = bool(
140+
os.environ.get("OLLAMA_HOST") or os.environ.get("SPECSMITH_PROVIDER") == "ollama"
141+
)
140142

141143
if not (has_anthropic or has_openai or has_ollama):
142144
return None # No provider — skip LLM, fall through to stub
143145

144146
try:
145-
from specsmith.agent.runner import AgentRunner # type: ignore[import]
147+
from specsmith.agent.runner import AgentRunner
146148

147149
runner = AgentRunner(project_dir=".")
148150
prompt = _SKILL_PROMPT.format(description=description)

0 commit comments

Comments
 (0)