Skip to content

Commit 4158dcf

Browse files
chore(deps): update pre-commit hooks (#6029)
* chore(deps): update pre-commit hooks updates: - [github.com/pre-commit/mirrors-clang-format: v22.1.0 → v22.1.2](pre-commit/mirrors-clang-format@v22.1.0...v22.1.2) - [github.com/astral-sh/ruff-pre-commit: v0.15.4 → v0.15.9](astral-sh/ruff-pre-commit@v0.15.4...v0.15.9) - [github.com/pre-commit/mirrors-mypy: v1.19.1 → v1.20.0](pre-commit/mirrors-mypy@v1.19.1...v1.20.0) - [github.com/codespell-project/codespell: v2.4.1 → v2.4.2](codespell-project/codespell@v2.4.1...v2.4.2) - [github.com/adhtruong/mirrors-typos: v1.44.0 → v1.45.0](adhtruong/mirrors-typos@v1.44.0...v1.45.0) - [github.com/python-jsonschema/check-jsonschema: 0.37.0 → 0.37.1](python-jsonschema/check-jsonschema@0.37.0...0.37.1) * fix: allow NumPy writeable spelling in typos NumPy uses `writeable` in public flags and API names, so typos should treat that spelling as intentional instead of blocking pre-commit runs. Made-with: Cursor --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com>
1 parent 98e50b7 commit 4158dcf

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,22 @@ repos:
2525

2626
# Clang format the codebase automatically
2727
- repo: https://github.com/pre-commit/mirrors-clang-format
28-
rev: "v22.1.0"
28+
rev: "v22.1.2"
2929
hooks:
3030
- id: clang-format
3131
types_or: [c++, c, cuda]
3232

3333
# Ruff, the Python auto-correcting linter/formatter written in Rust
3434
- repo: https://github.com/astral-sh/ruff-pre-commit
35-
rev: v0.15.4
35+
rev: v0.15.9
3636
hooks:
3737
- id: ruff-check
3838
args: ["--fix", "--show-fixes"]
3939
- id: ruff-format
4040

4141
# Check static types with mypy
4242
- repo: https://github.com/pre-commit/mirrors-mypy
43-
rev: "v1.19.1"
43+
rev: "v1.20.0"
4444
hooks:
4545
- id: mypy
4646
args: []
@@ -112,7 +112,7 @@ repos:
112112
# Use tools/codespell_ignore_lines_from_errors.py
113113
# to rebuild .codespell-ignore-lines
114114
- repo: https://github.com/codespell-project/codespell
115-
rev: "v2.4.1"
115+
rev: "v2.4.2"
116116
hooks:
117117
- id: codespell
118118
exclude: "(.supp|^pyproject.toml)$"
@@ -122,7 +122,7 @@ repos:
122122
# Use mirror because pre-commit autoupdate confuses tags in the upstream repo.
123123
# See https://github.com/crate-ci/typos/issues/390
124124
- repo: https://github.com/adhtruong/mirrors-typos
125-
rev: "v1.44.0"
125+
rev: "v1.45.0"
126126
hooks:
127127
- id: typos
128128
args: []
@@ -151,7 +151,7 @@ repos:
151151

152152
# Check schemas on some of our YAML files
153153
- repo: https://github.com/python-jsonschema/check-jsonschema
154-
rev: 0.37.0
154+
rev: 0.37.1
155155
hooks:
156156
- id: check-readthedocs
157157
- id: check-github-workflows

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ fo = "fo"
202202
quater = "quater"
203203
optin = "optin"
204204
othr = "othr"
205+
# NumPy uses "writeable" in public API names and flags.
206+
writeable = "writeable"
207+
Writeable = "Writeable"
208+
WRITEABLE = "WRITEABLE"
205209

206210
#[tool.typos.type.cpp.extend-words]
207211
setp = "setp"

0 commit comments

Comments
 (0)