style(tools): format the sandbox interpreter and skill tool changes with ruff

This commit is contained in:
Hyu
2026-09-30 18:45:00 +08:00
parent 4fc700b7e0
commit 5a31ac75fc
3 changed files with 2 additions and 6 deletions
@@ -757,10 +757,7 @@ class NativeToolLoader(loader.ToolLoader):
# Sandbox images built from a host rootfs may only ship `python3`, and a
# read-only /usr prevents creating a `python` shim inside the jail, so
# resolve the interpreter instead of assuming its name.
command = (
'PYTHON_BIN=$(command -v python3 || command -v python); '
f"\"$PYTHON_BIN\" - <<'PY'\n{script}\nPY"
)
command = f'PYTHON_BIN=$(command -v python3 || command -v python); "$PYTHON_BIN" - <<\'PY\'\n{script}\nPY'
result = await self.ap.box_service.execute_tool(
{
'command': command,