style: auto-format enhance_skill_local.py and test with ruff

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
yusyus
2026-02-24 07:05:50 +03:00
parent 5ae57d192a
commit 1229ff2baf
2 changed files with 2 additions and 6 deletions

View File

@@ -1214,9 +1214,7 @@ def _detect_api_target() -> tuple[str, str] | None:
Returns:
(target, api_key) tuple if an API key is found, else None.
"""
anthropic_key = os.environ.get("ANTHROPIC_API_KEY") or os.environ.get(
"ANTHROPIC_AUTH_TOKEN"
)
anthropic_key = os.environ.get("ANTHROPIC_API_KEY") or os.environ.get("ANTHROPIC_AUTH_TOKEN")
if anthropic_key:
return ("claude", anthropic_key)

View File

@@ -683,9 +683,7 @@ class TestEnhanceDispatcher:
called_with["target"] = target
called_with["api_key"] = api_key
monkeypatch.setattr(
"skill_seekers.cli.enhance_skill_local._run_api_enhance", fake_run_api
)
monkeypatch.setattr("skill_seekers.cli.enhance_skill_local._run_api_enhance", fake_run_api)
main()
assert called_with == {"target": "gemini", "api_key": "AIza-test"}