Skip to content

Commit

Permalink
chore: update pre-commit hooks (#305)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
pre-commit-ci[bot] authored Feb 18, 2024
1 parent e9f1de5 commit 81f1785
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.3
rev: 0.27.4
hooks:
- id: check-github-workflows

Expand Down Expand Up @@ -73,7 +73,7 @@ repos:
]

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

- repo: https://github.com/scientific-python/cookie
rev: "2023.12.21"
rev: "2024.01.24"
hooks:
- id: sp-repo-review
additional_dependencies: ["repo-review[cli]"]
2 changes: 1 addition & 1 deletion nbclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@ def handle_comm_msg(
data = content["data"]
if self.store_widget_state and "state" in data: # ignore custom msg'es
self.widget_state.setdefault(content["comm_id"], {}).update(data["state"])
if "buffer_paths" in data and data["buffer_paths"]:
if data.get("buffer_paths"):
comm_id = content["comm_id"]
if comm_id not in self.widget_buffers:
self.widget_buffers[comm_id] = {}
Expand Down

0 comments on commit 81f1785

Please sign in to comment.