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 <noreply@anthropic.com>
This commit is contained in:
Harshit28j 2026-03-05 06:42:19 +05:30
parent 1ac9ae4a15
commit 2400f00bcb

View file

@ -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"]