From e98f775eb84d19f914ed0245b7e3dbd2ea1a17bc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 10 Jul 2026 17:51:51 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- studio/backend/core/inference/tools.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/studio/backend/core/inference/tools.py b/studio/backend/core/inference/tools.py index 2997505c42..f2d0375058 100644 --- a/studio/backend/core/inference/tools.py +++ b/studio/backend/core/inference/tools.py @@ -6056,7 +6056,11 @@ def _check_signal_escape_patterns( found.add("shell-script:" + first) return found - def _check_args_for_blocked(args_nodes, shell_maybe_true = False, cwd_prefix = ""): + def _check_args_for_blocked( + args_nodes, + shell_maybe_true = False, + cwd_prefix = "", + ): """Check if any call arguments contain blocked commands. ``cwd_prefix`` is a synthetic ``env -C `` wrapper string prepended to a reconstructed argv command when the call has a literal escaping ``cwd=`` (subprocess.run(['git','init','repo'], cwd='/tmp')), so the