diff --git a/scripts/lib_agent.py b/scripts/lib_agent.py index 7f261bf..4c4c362 100644 --- a/scripts/lib_agent.py +++ b/scripts/lib_agent.py @@ -366,14 +366,12 @@ def prepare_task_workspace(skill_dir: Path, run_id: str, task: Task, agent_id: s _BOOTSTRAP_FILES = ["SOUL.md", "BOOTSTRAP.md", "USER.md", "IDENTITY.md", "HEARTBEAT.md", "TOOLS.md"] - def _remove_readonly(func, path, _): def _remove_readonly(func, path, _): try: os.chmod(path, stat.S_IWRITE) func(path) except OSError: pass - func(path) saved_bootstrap: dict[str, bytes] = {} if workspace.exists(): diff --git a/tests/test_lib_grading.py b/tests/test_lib_grading.py index 8588715..8f48a58 100644 --- a/tests/test_lib_grading.py +++ b/tests/test_lib_grading.py @@ -10,7 +10,7 @@ if str(SCRIPTS_DIR) not in sys.path: sys.path.insert(0, str(SCRIPTS_DIR)) -from lib_grading import _combine_grades, _normalize_judge_response, GradeResult +from lib_grading import _combine_grades, _normalize_judge_response, GradeResult # noqa: E402 class JudgeNormalizationTests(unittest.TestCase):