style: apply ruff format to agent_utils.py

Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
Devin AI
2026-04-14 07:35:33 +00:00
parent 8d68d35622
commit 5e80a9dde6

View File

@@ -1099,7 +1099,9 @@ ALLOWED_TOOL_MODULE_PREFIXES: Final[tuple[str, ...]] = (
def _is_trusted_tool_module(module_path: str) -> bool:
"""Return True if *module_path* is within the trusted tool allowlist."""
return any(module_path.startswith(prefix) for prefix in ALLOWED_TOOL_MODULE_PREFIXES)
return any(
module_path.startswith(prefix) for prefix in ALLOWED_TOOL_MODULE_PREFIXES
)
def load_agent_from_repository(from_repository: str) -> dict[str, Any]: