chore: enable F821, F401, W293 (#9503)

* auto fixes

* auto fix pt2 and transitive deps and undefined var checking locals()

* manual fixes (ignored or letta-code fixed)

* fix circular import
This commit is contained in:
Kian Jones
2026-02-17 10:07:40 -08:00
committed by Caren Thomas
parent fa70e09963
commit 25d54dd896
211 changed files with 534 additions and 2243 deletions

View File

@@ -138,7 +138,6 @@ async def test_add_mcp_tool_accepts_non_strict_schemas():
@pytest.mark.asyncio
async def test_add_mcp_tool_rejects_invalid_schemas():
"""Test that adding MCP tools with invalid schemas is rejected."""
from fastapi import HTTPException
from letta.server.rest_api.routers.v1.tools import add_mcp_tool
from letta.settings import tool_settings
@@ -465,7 +464,6 @@ def test_mcp_schema_with_uuid_format_required_field():
def test_mcp_schema_complex_nested_with_defs():
"""Test generating exact schema with nested Pydantic-like models using $defs."""
import json
from letta.functions.mcp_client.types import MCPToolHealth