From 39183bd4e589f50ff0c25f935fbcc4db966be92a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Jul 2026 16:09:20 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/python/test_docker_nb_strip_colab_race.py | 6 ++++-- tests/python/test_docker_publish_ref_freeze.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/python/test_docker_nb_strip_colab_race.py b/tests/python/test_docker_nb_strip_colab_race.py index c236d16878..3af2590e12 100644 --- a/tests/python/test_docker_nb_strip_colab_race.py +++ b/tests/python/test_docker_nb_strip_colab_race.py @@ -99,7 +99,9 @@ def test_a_save_during_the_cleanup_is_not_overwritten(strip, racing, tmp_path: P ) -def test_the_recorded_hash_still_matches_the_file_after_a_racing_save(strip, racing, tmp_path: Path): +def test_the_recorded_hash_still_matches_the_file_after_a_racing_save( + strip, racing, tmp_path: Path +): # migrate() rewrites STATE with the post-strip hash. If the write above is # allowed to clobber a save, the state ALSO says "pristine", so every later # refresh happily overwrites the notebook again. @@ -136,4 +138,4 @@ def test_the_normal_no_race_cleanup_still_strips_and_rewrites(strip, tmp_path: P assert strip.strip_notebook(str(path)) is True cleaned = json.loads(path.read_text(encoding = "utf-8")) assert cleaned["cells"][0]["source"] == ["# Llama\n"] - assert strip.strip_notebook(str(path)) is False # idempotent + assert strip.strip_notebook(str(path)) is False # idempotent diff --git a/tests/python/test_docker_publish_ref_freeze.py b/tests/python/test_docker_publish_ref_freeze.py index 40a7649c29..78b47b5eae 100644 --- a/tests/python/test_docker_publish_ref_freeze.py +++ b/tests/python/test_docker_publish_ref_freeze.py @@ -175,7 +175,7 @@ def _run_llama_step(script: str, tmp_path: Path, *, curl_exit: int): env = dict(os.environ) env["PATH"] = f"{bin_dir}{os.pathsep}" + env["PATH"] env["GITHUB_OUTPUT"] = str(out) - env["INPUT_TAG"] = "" # the default (push / schedule) trigger + env["INPUT_TAG"] = "" # the default (push / schedule) trigger path = tmp_path / "llama_step.sh" path.write_text(_expand(script), encoding = "utf-8") return subprocess.run(