From f20b55e7471a5898594f8dfe1c9c71d0eb750dc0 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 5 Jul 2026 06:08:48 +0000 Subject: [PATCH] fix(lint): sort imports in mcp token_exchanger to satisfy I001 budget Ruff's I001 strict-rule count tipped over its budget in ruff-strict-budget.json because the token_endpoint_auth import in token_exchanger.py was placed after sibling outbound_credentials imports, leaving the block unsorted. Reordering puts .auth.token_endpoint_auth ahead of .outbound_credentials.*, dropping the total I001 count back to 273 so the promote-to-main gate passes again. Co-authored-by: Krrish Dholakia --- .../mcp_server/outbound_credentials/token_exchanger.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litellm/proxy/_experimental/mcp_server/outbound_credentials/token_exchanger.py b/litellm/proxy/_experimental/mcp_server/outbound_credentials/token_exchanger.py index 02b6d4eafb1..2cc4735e877 100644 --- a/litellm/proxy/_experimental/mcp_server/outbound_credentials/token_exchanger.py +++ b/litellm/proxy/_experimental/mcp_server/outbound_credentials/token_exchanger.py @@ -27,6 +27,9 @@ from typing import Literal, Protocol from typing_extensions import assert_never from litellm._logging import verbose_logger +from litellm.proxy._experimental.mcp_server.auth.token_endpoint_auth import ( + build_token_endpoint_client_auth, +) from litellm.proxy._experimental.mcp_server.outbound_credentials.oauth_token_store import ( InMemoryTokenCacheBackend, InProcessRefreshCoordinator, @@ -39,9 +42,6 @@ from litellm.proxy._experimental.mcp_server.outbound_credentials.result import ( Ok, Result, ) -from litellm.proxy._experimental.mcp_server.auth.token_endpoint_auth import ( - build_token_endpoint_client_auth, -) from litellm.proxy._experimental.mcp_server.outbound_credentials.types import ( CredError, ServerSpec,