Skip to content

Commit f2d40f6

Browse files
chore: update pre-commit hooks (#1441)
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 b85c15b commit f2d40f6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pre-commit-config.yaml

+3-3
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.28.4
24+
rev: 0.28.6
2525
hooks:
2626
- id: check-github-workflows
2727

@@ -52,7 +52,7 @@ repos:
5252
- id: rst-inline-touching-normal
5353

5454
- repo: https://github.com/pre-commit/mirrors-mypy
55-
rev: "v1.10.0"
55+
rev: "v1.10.1"
5656
hooks:
5757
- id: mypy
5858
files: jupyter_server
@@ -61,7 +61,7 @@ repos:
6161
["traitlets>=5.13", "jupyter_core>=5.5", "jupyter_client>=8.5"]
6262

6363
- repo: https://github.com/astral-sh/ruff-pre-commit
64-
rev: v0.4.7
64+
rev: v0.5.0
6565
hooks:
6666
- id: ruff
6767
types_or: [python, jupyter]

tests/test_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def test_filefind(tmp_path, filename, result):
160160
if isinstance(result, str):
161161
found = filefind(filename, [str(a), str(b)])
162162
found_relative = Path(found).relative_to(tmp_path)
163-
assert str(found_relative) == result
163+
assert str(found_relative).replace(os.sep, "/") == result
164164
else:
165165
with pytest.raises(result):
166166
filefind(filename, [str(a), str(b)])

0 commit comments

Comments
 (0)