From 1229ff2bafdddad59c65e088efb21f9dab0f8d14 Mon Sep 17 00:00:00 2001 From: yusyus Date: Tue, 24 Feb 2026 07:05:50 +0300 Subject: [PATCH] style: auto-format enhance_skill_local.py and test with ruff Co-Authored-By: Claude Sonnet 4.6 --- src/skill_seekers/cli/enhance_skill_local.py | 4 +--- tests/test_enhance_skill_local.py | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/skill_seekers/cli/enhance_skill_local.py b/src/skill_seekers/cli/enhance_skill_local.py index 1ddc59f..6fecc6e 100644 --- a/src/skill_seekers/cli/enhance_skill_local.py +++ b/src/skill_seekers/cli/enhance_skill_local.py @@ -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) diff --git a/tests/test_enhance_skill_local.py b/tests/test_enhance_skill_local.py index 601db7e..d17eb94 100644 --- a/tests/test_enhance_skill_local.py +++ b/tests/test_enhance_skill_local.py @@ -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"}