Skip to content

Commit 81f1785

Browse files
chore: update pre-commit hooks (#305)
* chore: update pre-commit hooks updates: - [github.com/python-jsonschema/check-jsonschema: 0.27.3 → 0.27.4](python-jsonschema/check-jsonschema@0.27.3...0.27.4) - [github.com/astral-sh/ruff-pre-commit: v0.1.9 → v0.2.0](astral-sh/ruff-pre-commit@v0.1.9...v0.2.0) - [github.com/scientific-python/cookie: 2023.12.21 → 2024.01.24](scientific-python/cookie@2023.12.21...2024.01.24) * [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 e9f1de5 commit 81f1785

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
- id: trailing-whitespace
2222

2323
- repo: https://github.com/python-jsonschema/check-jsonschema
24-
rev: 0.27.3
24+
rev: 0.27.4
2525
hooks:
2626
- id: check-github-workflows
2727

@@ -73,7 +73,7 @@ repos:
7373
]
7474

7575
- repo: https://github.com/astral-sh/ruff-pre-commit
76-
rev: v0.1.9
76+
rev: v0.2.0
7777
hooks:
7878
- id: ruff
7979
types_or: [python, jupyter]
@@ -84,7 +84,7 @@ repos:
8484
exclude: "^tests/files/.*.ipynb"
8585

8686
- repo: https://github.com/scientific-python/cookie
87-
rev: "2023.12.21"
87+
rev: "2024.01.24"
8888
hooks:
8989
- id: sp-repo-review
9090
additional_dependencies: ["repo-review[cli]"]

nbclient/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ def handle_comm_msg(
12061206
data = content["data"]
12071207
if self.store_widget_state and "state" in data: # ignore custom msg'es
12081208
self.widget_state.setdefault(content["comm_id"], {}).update(data["state"])
1209-
if "buffer_paths" in data and data["buffer_paths"]:
1209+
if data.get("buffer_paths"):
12101210
comm_id = content["comm_id"]
12111211
if comm_id not in self.widget_buffers:
12121212
self.widget_buffers[comm_id] = {}

0 commit comments

Comments
 (0)