Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#1138)
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 <steven.silvester@ieee.org>
  • Loading branch information
pre-commit-ci[bot] and blink1073 authored Aug 1, 2023
1 parent bed7ee4 commit c851746
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 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.23.2
rev: 0.23.3
hooks:
- id: check-github-workflows

Expand All @@ -31,12 +31,12 @@ repos:
- id: mdformat

- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.7.0
hooks:
- id: black

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.278
rev: v0.0.281
hooks:
- id: ruff
args: ["--fix"]
2 changes: 1 addition & 1 deletion ipykernel/debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ async def richInspectVariables(self, message):
}
)
if reply["success"]:
repr_data, repr_metadata = eval(reply["body"]["result"], {}, {}) # noqa[S307]
repr_data, repr_metadata = eval(reply["body"]["result"], {}, {}) # noqa: S307

body = {
"data": repr_data,
Expand Down
6 changes: 3 additions & 3 deletions 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[S307]
return eval(self.name, g) # noqa: S307


class CannedCell(CannedObject):
Expand Down Expand Up @@ -278,9 +278,9 @@ def __init__(self, obj):
self.shape = obj.shape
self.dtype = obj.dtype.descr if obj.dtype.fields else obj.dtype.str
self.pickled = False
if sum(obj.shape) == 0: # noqa
if sum(obj.shape) == 0:
self.pickled = True
elif obj.dtype == "O": # noqa
elif obj.dtype == "O":
# can't handle object dtype with buffer approach
self.pickled = True
elif obj.dtype.fields and any(dt == "O" for dt, sz in obj.dtype.fields.values()):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ dependencies = ["mypy>=0.990"]
test = "mypy --install-types --non-interactive {args:.}"

[tool.hatch.envs.lint]
dependencies = ["black==23.3.0", "mdformat>0.7", "ruff==0.0.278"]
dependencies = ["black==23.3.0", "mdformat>0.7", "ruff==0.0.281"]
detached = true
[tool.hatch.envs.lint.scripts]
style = [
Expand Down

0 comments on commit c851746

Please sign in to comment.