From b66dbbb0b73490f83742e4bc4591c460c4fac9bd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Feb 2026 16:35:43 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black-pre-commit-mirror: 25.12.0 → 26.1.0](https://github.com/psf/black-pre-commit-mirror/compare/25.12.0...26.1.0) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 411ef63..9ffd451 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,7 +31,7 @@ repos: - id: isort - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.12.0 + rev: 26.1.0 hooks: - id: black From 211fb4898a52aee6840abbe68555760d83585322 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Feb 2026 16:36:31 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_cache.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/test_cache.py b/tests/test_cache.py index a9ba1c5..7579e15 100644 --- a/tests/test_cache.py +++ b/tests/test_cache.py @@ -50,8 +50,7 @@ def test_basic_workflow(tmp_path): path = os.path.join(NB_PATH, "basic_failing.ipynb") diff = cache.diff_nbfile_with_cache(pk, path, as_str=True, use_color=False) - assert diff == dedent( - f"""\ + assert diff == dedent(f"""\ nbdiff --- cached pk=1 +++ other: {path} @@ -73,8 +72,7 @@ def test_basic_workflow(tmp_path): - text: - 1 - """ - ) + """) cache.remove_cache(pk) assert cache.list_cache_records() == [] @@ -113,7 +111,7 @@ def test_v4_2_to_v4_5(tmp_path): uri="basic.ipynb", check_validity=False, ) - (pk, nb) = cache.merge_match_into_notebook( + pk, nb = cache.merge_match_into_notebook( nbf.read(os.path.join(NB_PATH, "basic_v4-5.ipynb"), nbf.NO_CONVERT) ) assert cache_record.pk == pk @@ -131,7 +129,7 @@ def test_v4_5_to_v4_2(tmp_path): uri="basic_v4-5.ipynb", check_validity=False, ) - (pk, nb) = cache.merge_match_into_notebook( + pk, nb = cache.merge_match_into_notebook( nbf.read(os.path.join(NB_PATH, "basic.ipynb"), nbf.NO_CONVERT) ) assert cache_record.pk == pk