[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-07-13 10:24:58 +00:00
commit a67dd44fae
2 changed files with 4 additions and 2 deletions

View file

@ -1363,7 +1363,6 @@ def run_server(
def _warm_sandbox_probe():
try:
from core.inference.sandbox import sandbox_available
sandbox_available()
except Exception as exc: # never let the probe crash server startup
logger.debug("sandbox availability probe failed at startup: %s", exc)

View file

@ -59,7 +59,10 @@ def sandboxed_workdir(tmp_path, monkeypatch):
# that flag is set, an unavailable sandbox here is a real regression, so
# fail. Otherwise (local dev, or a runner that genuinely cannot create
# unprivileged user namespaces) skip rather than turn the run red.
if os.environ.get("UNSLOTH_STUDIO_SANDBOX_CI_ENFORCE", "").strip().lower() in _TRUTHY_CI_VALUES:
if (
os.environ.get("UNSLOTH_STUDIO_SANDBOX_CI_ENFORCE", "").strip().lower()
in _TRUTHY_CI_VALUES
):
pytest.fail(
"sandbox unavailable but UNSLOTH_STUDIO_SANDBOX_CI_ENFORCE=1: the "
"CI runner confirmed bubblewrap/sandbox-exec works, so this "