Skip to content

Commit 09c9b2a

Browse files
chore: update pre-commit hooks (#1205)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Steven Silvester <steven.silvester@ieee.org>
1 parent a993626 commit 09c9b2a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.pre-commit-config.yaml

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

2424
- repo: https://github.com/python-jsonschema/check-jsonschema
25-
rev: 0.27.3
25+
rev: 0.27.4
2626
hooks:
2727
- id: check-github-workflows
2828

@@ -74,7 +74,7 @@ repos:
7474
- id: rst-inline-touching-normal
7575

7676
- repo: https://github.com/astral-sh/ruff-pre-commit
77-
rev: v0.1.9
77+
rev: v0.2.0
7878
hooks:
7979
- id: ruff
8080
types_or: [python, jupyter]
@@ -83,7 +83,7 @@ repos:
8383
types_or: [python, jupyter]
8484

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

ipykernel/debugger.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ async def setBreakpoints(self, message):
473473
message_response = await self._forward_message(message)
474474
# debugpy can set breakpoints on different lines than the ones requested,
475475
# so we want to record the breakpoints that were actually added
476-
if "success" in message_response and message_response["success"]:
476+
if message_response.get("success"):
477477
self.breakpoint_list[source] = [
478478
{"line": breakpoint["line"]}
479479
for breakpoint in message_response["body"]["breakpoints"]
@@ -661,7 +661,7 @@ async def richInspectVariables(self, message):
661661
}
662662
)
663663
if reply["success"]:
664-
repr_data, repr_metadata = eval(reply["body"]["result"], {}, {}) # noqa: PGH001
664+
repr_data, repr_metadata = eval(reply["body"]["result"], {}, {})
665665

666666
body = {
667667
"data": repr_data,

ipykernel/kernelapp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ def init_pdb(self):
675675
# Only available in newer IPython releases:
676676
debugger.Pdb = debugger.InterruptiblePdb # type:ignore[misc]
677677
pdb.Pdb = debugger.Pdb # type:ignore[assignment,misc]
678-
pdb.set_trace = debugger.set_trace # type:ignore[assignment]
678+
pdb.set_trace = debugger.set_trace
679679

680680
@catch_config_error
681681
def initialize(self, argv=None):

ipykernel/pickleutil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def get_object(self, g=None):
179179
if g is None:
180180
g = {}
181181

182-
return eval(self.name, g) # noqa: PGH001
182+
return eval(self.name, g)
183183

184184

185185
class CannedCell(CannedObject):

0 commit comments

Comments
 (0)