fix(ruff): remove unused import os and format git call in sandbox_reexecute_with_changes_steps.py
CI / push-validation (pull_request) Successful in 40s
CI / helm (pull_request) Successful in 50s
CI / build (pull_request) Successful in 57s
CI / lint (pull_request) Successful in 1m10s
CI / quality (pull_request) Successful in 1m18s
CI / typecheck (pull_request) Successful in 1m25s
CI / security (pull_request) Successful in 1m46s
CI / integration_tests (pull_request) Successful in 4m22s
CI / unit_tests (pull_request) Failing after 6m22s
CI / coverage (pull_request) Has been skipped
CI / docker (pull_request) Has been skipped
CI / status-check (pull_request) Failing after 3s

This fixes the ruff lint failure (F401: imported but unused ) that was
causing the CI lint job to fail on PR #11132.
This commit is contained in:
2026-05-12 01:56:15 +00:00
parent eb29e3bea3
commit af2e176732
@@ -2,7 +2,6 @@
from __future__ import annotations
import os
import shutil
import subprocess
import tempfile
@@ -65,7 +64,10 @@ def step_commit_on_worktree_branch(context: object) -> None:
_git(["checkout", context.swc_branch], cwd=context.swc_repo)
Path(context.swc_wt_dir, "extra_work.py").write_text("llm_generated\n")
_git(["add", "."], cwd=context.swc_wt_dir)
_git(["commit", "-q", "-m", "plan execute: LLM generated this file"], cwd=context.swc_wt_dir)
_git(
["commit", "-q", "-m", "plan execute: LLM generated this file"],
cwd=context.swc_wt_dir,
)
# Switch back so subsequent checks run against main.
_git(["checkout", "main"], cwd=context.swc_repo)