style(sandbox): fix ruff format violations in git_worktree.py and toctou steps
Applied ruff format to resolve line-wrapping style violations in git_worktree.py and git_worktree_toctou_race_fix_steps.py that were causing the CI lint job to fail. ISSUES CLOSED: #7507
This commit is contained in:
@@ -81,9 +81,7 @@ def step_gwt_toctou_saved_exists(ctx: Context, label: str) -> None:
|
||||
)
|
||||
|
||||
|
||||
@then(
|
||||
'the gwt toctou saved sandbox paths "{a}" and "{b}" should differ'
|
||||
)
|
||||
@then('the gwt toctou saved sandbox paths "{a}" and "{b}" should differ')
|
||||
def step_gwt_toctou_saved_differ(ctx: Context, a: str, b: str) -> None:
|
||||
saved = _ensure_saved_sandboxes(ctx)
|
||||
path_a = saved[a].context.sandbox_path
|
||||
|
||||
@@ -719,9 +719,7 @@ class GitWorktreeSandbox:
|
||||
shutil.rmtree(self._worktree_path, ignore_errors=True)
|
||||
|
||||
# Remove the parent temporary directory
|
||||
if self._parent_temp_dir is not None and os.path.exists(
|
||||
self._parent_temp_dir
|
||||
):
|
||||
if self._parent_temp_dir is not None and os.path.exists(self._parent_temp_dir):
|
||||
try:
|
||||
shutil.rmtree(self._parent_temp_dir, ignore_errors=False)
|
||||
logger.debug(
|
||||
|
||||
Reference in New Issue
Block a user