Repository navigation
fix(lint): sort imports in mcp token_exchanger to satisfy I001 budget - #32177
Closed
cursor[bot] wants to merge 1 commit into
Closed
cursor[bot] wants to merge 1 commit into
cursor[bot] wants to merge 1 commit into
Conversation
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 <krrish-berri-2@users.noreply.github.com>
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
devin-ai-integration
Bot
changed the base branch from
litellm_internal_staging
to
main
September 23, 2026 15:51
Contributor
|
#35495 already sorted these imports on main and the file has since moved, so this lint fix is not needed. Reopen if anything is missing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Relevant issues
Linear ticket
Pre-Submission checklist
@greptileaiand received a Confidence Score of at least 4/5 before requesting a maintainer reviewScreenshots / Proof of Fix
Before,
scripts/ruff_strict_gate.pyfailed on everychore(ci): promote internal staging to mainPR because the I001 total was 274, one over the 273 cap inruff-strict-budget.json; the sole offender waslitellm/proxy/_experimental/mcp_server/outbound_credentials/token_exchanger.py, whose import block wasn't sorted (litellm.proxy._experimental.mcp_server.auth.token_endpoint_authcame after theoutbound_credentials.*siblings).After reordering the imports so
.auth.token_endpoint_authprecedes.outbound_credentials.*:The gate that failed on PR #32156 (run https://github.com/BerriAI/litellm/actions/runs/28722497147) now passes locally against the same base.
Type
🐛 Bug Fix
Changes
Reordered the top-of-file imports in
litellm/proxy/_experimental/mcp_server/outbound_credentials/token_exchanger.pyto be alphabetical within the first-party group. No runtime behavior change.