Skip to content

Commit c851746

Browse files
[pre-commit.ci] pre-commit autoupdate (#1138)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Steven Silvester <[email protected]>
1 parent bed7ee4 commit c851746

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
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.23.2
24+
rev: 0.23.3
2525
hooks:
2626
- id: check-github-workflows
2727

@@ -31,12 +31,12 @@ repos:
3131
- id: mdformat
3232

3333
- repo: https://github.com/psf/black
34-
rev: 23.3.0
34+
rev: 23.7.0
3535
hooks:
3636
- id: black
3737

3838
- repo: https://github.com/astral-sh/ruff-pre-commit
39-
rev: v0.0.278
39+
rev: v0.0.281
4040
hooks:
4141
- id: ruff
4242
args: ["--fix"]

ipykernel/debugger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ async def richInspectVariables(self, message):
657657
}
658658
)
659659
if reply["success"]:
660-
repr_data, repr_metadata = eval(reply["body"]["result"], {}, {}) # noqa[S307]
660+
repr_data, repr_metadata = eval(reply["body"]["result"], {}, {}) # noqa: S307
661661

662662
body = {
663663
"data": repr_data,

ipykernel/pickleutil.py

Lines changed: 3 additions & 3 deletions
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[S307]
182+
return eval(self.name, g) # noqa: S307
183183

184184

185185
class CannedCell(CannedObject):
@@ -278,9 +278,9 @@ def __init__(self, obj):
278278
self.shape = obj.shape
279279
self.dtype = obj.dtype.descr if obj.dtype.fields else obj.dtype.str
280280
self.pickled = False
281-
if sum(obj.shape) == 0: # noqa
281+
if sum(obj.shape) == 0:
282282
self.pickled = True
283-
elif obj.dtype == "O": # noqa
283+
elif obj.dtype == "O":
284284
# can't handle object dtype with buffer approach
285285
self.pickled = True
286286
elif obj.dtype.fields and any(dt == "O" for dt, sz in obj.dtype.fields.values()):

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ dependencies = ["mypy>=0.990"]
117117
test = "mypy --install-types --non-interactive {args:.}"
118118

119119
[tool.hatch.envs.lint]
120-
dependencies = ["black==23.3.0", "mdformat>0.7", "ruff==0.0.278"]
120+
dependencies = ["black==23.3.0", "mdformat>0.7", "ruff==0.0.281"]
121121
detached = true
122122
[tool.hatch.envs.lint.scripts]
123123
style = [

0 commit comments

Comments
 (0)