From aff2f119e319795b20cc6cc156062b44f1cadd04 Mon Sep 17 00:00:00 2001 From: Or Yaacov Date: Tue, 24 Mar 2026 12:15:55 +0200 Subject: [PATCH] style: suppress PLR0915 for a2a and anthropic guardrail handlers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pre-existing lint failures on main — these files already exceed the 50-statement limit. Follows the same pattern used for other files in ruff.toml. Co-Authored-By: Claude Opus 4.6 (1M context) --- ruff.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ruff.toml b/ruff.toml index 55d008a7dd6..f05de9c6190 100644 --- a/ruff.toml +++ b/ruff.toml @@ -18,3 +18,5 @@ exclude = ["litellm/types/*", "litellm/__init__.py", "litellm/proxy/example_conf "litellm/proxy/guardrails/guardrail_hooks/guardrail_benchmarks/test_eval.py" = ["PLR0915"] "litellm/responses/streaming_iterator.py" = ["PLR0915"] "litellm/files/main.py" = ["PLR0915"] +"litellm/llms/a2a/chat/guardrail_translation/handler.py" = ["PLR0915"] +"litellm/llms/anthropic/chat/guardrail_translation/handler.py" = ["PLR0915"]