Skip to content

Commit 0695d33

Browse files
[pre-commit.ci] pre-commit autoupdate (#150)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black-pre-commit-mirror: 25.12.0 → 26.1.0](psf/black-pre-commit-mirror@25.12.0...26.1.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent e3b4c09 commit 0695d33

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ repos:
3131
- id: isort
3232

3333
- repo: https://github.com/psf/black-pre-commit-mirror
34-
rev: 25.12.0
34+
rev: 26.1.0
3535
hooks:
3636
- id: black
3737

tests/test_cache.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ def test_basic_workflow(tmp_path):
5050

5151
path = os.path.join(NB_PATH, "basic_failing.ipynb")
5252
diff = cache.diff_nbfile_with_cache(pk, path, as_str=True, use_color=False)
53-
assert diff == dedent(
54-
f"""\
53+
assert diff == dedent(f"""\
5554
nbdiff
5655
--- cached pk=1
5756
+++ other: {path}
@@ -73,8 +72,7 @@ def test_basic_workflow(tmp_path):
7372
- text:
7473
- 1
7574
76-
"""
77-
)
75+
""")
7876
cache.remove_cache(pk)
7977
assert cache.list_cache_records() == []
8078

@@ -113,7 +111,7 @@ def test_v4_2_to_v4_5(tmp_path):
113111
uri="basic.ipynb",
114112
check_validity=False,
115113
)
116-
(pk, nb) = cache.merge_match_into_notebook(
114+
pk, nb = cache.merge_match_into_notebook(
117115
nbf.read(os.path.join(NB_PATH, "basic_v4-5.ipynb"), nbf.NO_CONVERT)
118116
)
119117
assert cache_record.pk == pk
@@ -131,7 +129,7 @@ def test_v4_5_to_v4_2(tmp_path):
131129
uri="basic_v4-5.ipynb",
132130
check_validity=False,
133131
)
134-
(pk, nb) = cache.merge_match_into_notebook(
132+
pk, nb = cache.merge_match_into_notebook(
135133
nbf.read(os.path.join(NB_PATH, "basic.ipynb"), nbf.NO_CONVERT)
136134
)
137135
assert cache_record.pk == pk

0 commit comments

Comments
 (0)