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"}