style: format with ruff 0.13.0 for CI compatibility

This commit is contained in:
2025-09-17 17:30:47 -05:00
parent 46677a0d82
commit 8c0a526147
4 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -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.
+3 -3
View File
@@ -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")
+3 -3
View File
@@ -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}"