mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
style: format with ruff 0.13.0 for CI compatibility
This commit is contained in:
@@ -324,7 +324,7 @@ class ClaudeBridge(FastMCP):
|
||||
prompt += f"""
|
||||
|
||||
Options to consider:
|
||||
{chr(10).join(f"{i+1}. {opt}" for i, opt in enumerate(options))}
|
||||
{chr(10).join(f"{i + 1}. {opt}" for i, opt in enumerate(options))}
|
||||
"""
|
||||
|
||||
if criteria:
|
||||
|
||||
@@ -260,7 +260,7 @@ llm "Explain this code" --model gpt-4o
|
||||
llm --action consensus "Is this approach correct?" --devils-advocate
|
||||
llm --action models --provider openai
|
||||
|
||||
Available: {', '.join(available) if available else 'None'}"""
|
||||
Available: {", ".join(available) if available else "None"}"""
|
||||
|
||||
@override
|
||||
async def call(
|
||||
@@ -430,7 +430,7 @@ Available: {', '.join(available) if available else 'None'}"""
|
||||
if devil_model:
|
||||
# Create devil's advocate prompt
|
||||
responses_text = "\n\n".join(
|
||||
[f"Model {i+1}: {resp['response']}" for i, resp in enumerate(responses) if resp["response"]]
|
||||
[f"Model {i + 1}: {resp['response']}" for i, resp in enumerate(responses) if resp["response"]]
|
||||
)
|
||||
|
||||
devil_prompt = f"""You are a critical analyst. Review these responses to the question below and provide a devil's advocate perspective. Challenge assumptions, point out weaknesses, and suggest alternative viewpoints.
|
||||
|
||||
@@ -20,9 +20,9 @@ def test_cli_help():
|
||||
print(f"STDOUT: {result.stdout[:200]}")
|
||||
print(f"STDERR: {result.stderr[:200]}")
|
||||
|
||||
assert (
|
||||
result.returncode == 0
|
||||
), f"Command failed with code {result.returncode}\nSTDOUT: {result.stdout}\nSTDERR: {result.stderr}"
|
||||
assert result.returncode == 0, (
|
||||
f"Command failed with code {result.returncode}\nSTDOUT: {result.stdout}\nSTDERR: {result.stderr}"
|
||||
)
|
||||
assert "hanzo" in result.stdout.lower() or "mcp" in result.stdout.lower()
|
||||
print("✓ CLI help works")
|
||||
|
||||
|
||||
@@ -16,9 +16,9 @@ def test_no_pydantic_warnings():
|
||||
)
|
||||
|
||||
# Check for deprecation warnings in stderr
|
||||
assert (
|
||||
"PydanticDeprecatedSince20" not in result.stderr
|
||||
), f"Pydantic deprecation warning found in stderr: {result.stderr}"
|
||||
assert "PydanticDeprecatedSince20" not in result.stderr, (
|
||||
f"Pydantic deprecation warning found in stderr: {result.stderr}"
|
||||
)
|
||||
|
||||
# Check that the command succeeded
|
||||
assert result.returncode == 0, f"Command failed with return code {result.returncode}"
|
||||
|
||||
Reference in New Issue
Block a user