From 69bc5819c12a9e75213b0b9eced404c070b47612 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Fri, 27 Mar 2026 08:44:16 +0000 Subject: [PATCH] style: apply ruff formatting to crew.py and task.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: João --- lib/crewai/src/crewai/crew.py | 7 ++++++- lib/crewai/src/crewai/task.py | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/crewai/src/crewai/crew.py b/lib/crewai/src/crewai/crew.py index e6f11552b..5a00e1e18 100644 --- a/lib/crewai/src/crewai/crew.py +++ b/lib/crewai/src/crewai/crew.py @@ -1340,7 +1340,12 @@ class Crew(FlowTrackable, BaseModel): # Text files are always auto-injected (inlined as text), even # when the model does not support multimodal input. - text_prefixes = ("text/", "application/json", "application/xml", "application/x-yaml") + text_prefixes = ( + "text/", + "application/json", + "application/xml", + "application/x-yaml", + ) def is_auto_injected(content_type: str) -> bool: if any(content_type.startswith(t) for t in text_prefixes): diff --git a/lib/crewai/src/crewai/task.py b/lib/crewai/src/crewai/task.py index 8c359b469..a13982e2e 100644 --- a/lib/crewai/src/crewai/task.py +++ b/lib/crewai/src/crewai/task.py @@ -826,7 +826,12 @@ class Task(BaseModel): # Text files are always auto-injected (inlined as text), even # when the model does not support multimodal input. - text_prefixes = ("text/", "application/json", "application/xml", "application/x-yaml") + text_prefixes = ( + "text/", + "application/json", + "application/xml", + "application/x-yaml", + ) def is_auto_injected(content_type: str) -> bool: if any(content_type.startswith(t) for t in text_prefixes):