From 2400f00bcb74096ce44b50b113c4e124772d3b72 Mon Sep 17 00:00:00 2001 From: Harshit28j Date: Thu, 5 Mar 2026 06:42:19 +0530 Subject: [PATCH] fix(lint): suppress PLR0915 for 4 long functions in ruff.toml Add per-file-ignores for: - a2a_protocol/main.py (56 statements) - fine_tuning/main.py (53 statements) - generic_guardrail_api.py (51 statements) - mcp_streaming_iterator.py (73 statements) Follows existing pattern used for proxy/utils.py, streaming_iterator.py, etc. Co-Authored-By: Claude Opus 4.6 --- ruff.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ruff.toml b/ruff.toml index 76acb5dc936..798f961b586 100644 --- a/ruff.toml +++ b/ruff.toml @@ -17,3 +17,7 @@ exclude = ["litellm/types/*", "litellm/__init__.py", "litellm/proxy/example_conf "litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/content_filter.py" = ["PLR0915"] "litellm/proxy/guardrails/guardrail_hooks/guardrail_benchmarks/test_eval.py" = ["PLR0915"] "litellm/responses/streaming_iterator.py" = ["PLR0915"] +"litellm/a2a_protocol/main.py" = ["PLR0915"] +"litellm/fine_tuning/main.py" = ["PLR0915"] +"litellm/proxy/guardrails/guardrail_hooks/generic_guardrail_api/generic_guardrail_api.py" = ["PLR0915"] +"litellm/responses/mcp/mcp_streaming_iterator.py" = ["PLR0915"]