Skip to content

Commit 744e83c

Browse files
committed
Bump pre-commit hooks (nbqa 1.9.0 -> 1.9.1, ruff -> 0.15.12, hooks -> 6.0)
nbqa 1.9.0 referenced ast.Str which was removed in Python 3.12 — pre-commit.ci runs on 3.12 and crashed on every nbqa-ruff invocation. 1.9.1 fixes that. Also rename id: ruff -> ruff-check (ruff-pre-commit deprecated the legacy alias in v0.10).
1 parent 656a70e commit 744e83c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎.pre-commit-config.yaml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ minimum_pre_commit_version: 3.0.0
2121

2222
repos:
2323
- repo: https://github.com/pre-commit/pre-commit-hooks
24-
rev: v5.0.0
24+
rev: v6.0.0
2525
hooks:
2626
- id: check-yaml
2727
- id: check-toml
@@ -36,9 +36,9 @@ repos:
3636
exclude: \.ipynb$
3737

3838
- repo: https://github.com/astral-sh/ruff-pre-commit
39-
rev: v0.7.4
39+
rev: v0.15.12
4040
hooks:
41-
- id: ruff
41+
- id: ruff-check
4242
args: [--fix]
4343
- id: ruff-format
4444
# Notebook cells use a chained fluent API; ruff-format collapses
@@ -47,7 +47,7 @@ repos:
4747
exclude: \.ipynb$
4848

4949
- repo: https://github.com/nbQA-dev/nbQA
50-
rev: 1.9.0
50+
rev: 1.9.1
5151
hooks:
5252
- id: nbqa-ruff
5353
args: [--fix]

0 commit comments

Comments
 (0)