From 10ce844c02781d505c084b9802042b8aade87070 Mon Sep 17 00:00:00 2001 From: Etan Joseph Heyman Date: Tue, 4 Aug 2026 17:48:55 +0300 Subject: [PATCH] style: restore ruff clean on main after admin merges The 7 admin merges of 2026-08-04 (#645 #644 #643 #641 #633 #605 #602) bypassed CI, landing import-order and formatting drift on main. Every PR's lint job inherits it. Rebased onto #647 (949334a0), which cleared the watchdog test blocking this push. ruff check --fix + ruff format only; no behavioural change. --- src/brainlayer/mcp/__init__.py | 1 + tests/test_mcp_palette.py | 2 +- tests/test_t3_app_provenance.py | 4 +--- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/brainlayer/mcp/__init__.py b/src/brainlayer/mcp/__init__.py index 41f02716..8cb45398 100644 --- a/src/brainlayer/mcp/__init__.py +++ b/src/brainlayer/mcp/__init__.py @@ -205,6 +205,7 @@ def _calling_session_id() -> str: return _MCP_PROCESS_SESSION_ID return _server_owned_conversation_id(session) + # Tool annotations _MAX_FULL_CONTENT_RESULT_CHARS = 250_000 _MAX_RESULT_META = {"anthropic/maxResultSizeChars": _MAX_FULL_CONTENT_RESULT_CHARS} diff --git a/tests/test_mcp_palette.py b/tests/test_mcp_palette.py index edf0799d..01fdaed8 100644 --- a/tests/test_mcp_palette.py +++ b/tests/test_mcp_palette.py @@ -3,11 +3,11 @@ import asyncio import pytest +from mcp.types import TextContent import brainlayer.mcp as mcp_module from brainlayer.mcp import _full_tool_definitions, call_tool, list_tools from brainlayer.mcp.palette import CORE_TOOL_NAMES, ToolPalette -from mcp.types import TextContent CORE_WITH_CONTROL = (*CORE_TOOL_NAMES, "expand_palette") diff --git a/tests/test_t3_app_provenance.py b/tests/test_t3_app_provenance.py index 147d4546..f3e9c383 100644 --- a/tests/test_t3_app_provenance.py +++ b/tests/test_t3_app_provenance.py @@ -309,9 +309,7 @@ def sized_codex_record(text: str, byte_length: int) -> bytes: json.dumps( { "type": "user", - "message": { - "content": [{"type": "text", "text": "Keep ordinary Claude ingestion available."}] - }, + "message": {"content": [{"type": "text", "text": "Keep ordinary Claude ingestion available."}]}, "timestamp": "2026-08-01T12:00:00Z", } )