Skip to content

Commit 700b9b2

Browse files
chore: update pre-commit hooks (#1409)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Ian Thomas <ianthomas23@gmail.com>
1 parent 39a9d36 commit 700b9b2

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ repos:
4040
types_or: [yaml, html, json]
4141

4242
- repo: https://github.com/pre-commit/mirrors-mypy
43-
rev: "v1.16.1"
43+
rev: "v1.17.0"
4444
hooks:
4545
- id: mypy
4646
files: ipykernel
@@ -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.11.4
77+
rev: v0.12.4
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: "2025.01.22"
86+
rev: "2025.05.02"
8787
hooks:
8888
- id: sp-repo-review
8989
additional_dependencies: ["repo-review[cli]"]

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ ignore = [
256256
# Unused method argument:
257257
"ARG002",
258258
# `open()` should be replaced by `Path.open()`
259+
"PLC0415", # `import` should be at the top-level of a file
259260
"PTH123",
260261
"UP007", # use `X | Y` for type annotations, this does not works for dynamic getting type hints on older python
261262
"UP031", # Use format specifiers instead of percent format

0 commit comments

Comments
 (0)