Skip to content

Commit

Permalink
chore: update pre-commit hooks (#1205)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Steven Silvester <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and blink1073 authored Feb 6, 2024
1 parent a993626 commit 09c9b2a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,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 @@ -74,7 +74,7 @@ repos:
- id: rst-inline-touching-normal

- 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 @@ -83,7 +83,7 @@ repos:
types_or: [python, jupyter]

- 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]"]
4 changes: 2 additions & 2 deletions ipykernel/debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ async def setBreakpoints(self, message):
message_response = await self._forward_message(message)
# debugpy can set breakpoints on different lines than the ones requested,
# so we want to record the breakpoints that were actually added
if "success" in message_response and message_response["success"]:
if message_response.get("success"):
self.breakpoint_list[source] = [
{"line": breakpoint["line"]}
for breakpoint in message_response["body"]["breakpoints"]
Expand Down Expand Up @@ -661,7 +661,7 @@ async def richInspectVariables(self, message):
}
)
if reply["success"]:
repr_data, repr_metadata = eval(reply["body"]["result"], {}, {}) # noqa: PGH001
repr_data, repr_metadata = eval(reply["body"]["result"], {}, {})

body = {
"data": repr_data,
Expand Down
2 changes: 1 addition & 1 deletion ipykernel/kernelapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ def init_pdb(self):
# Only available in newer IPython releases:
debugger.Pdb = debugger.InterruptiblePdb # type:ignore[misc]
pdb.Pdb = debugger.Pdb # type:ignore[assignment,misc]
pdb.set_trace = debugger.set_trace # type:ignore[assignment]
pdb.set_trace = debugger.set_trace

@catch_config_error
def initialize(self, argv=None):
Expand Down
2 changes: 1 addition & 1 deletion ipykernel/pickleutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def get_object(self, g=None):
if g is None:
g = {}

return eval(self.name, g) # noqa: PGH001
return eval(self.name, g)


class CannedCell(CannedObject):
Expand Down

0 comments on commit 09c9b2a

Please sign in to comment.