chore(deps): update pre-commit hooks (#5951)
* chore(deps): update pre-commit hooks
updates:
- [github.com/pre-commit/mirrors-clang-format: v21.1.6 → v21.1.8](https://github.com/pre-commit/mirrors-clang-format/compare/v21.1.6...v21.1.8)
- [github.com/astral-sh/ruff-pre-commit: v0.14.7 → v0.14.10](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.7...v0.14.10)
- [github.com/pre-commit/mirrors-mypy: v1.19.0 → v1.19.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.19.0...v1.19.1)
- [github.com/crate-ci/typos: v1.40.0 → v1](https://github.com/crate-ci/typos/compare/v1.40.0...v1)
- [github.com/python-jsonschema/check-jsonschema: 0.35.0 → 0.36.0](https://github.com/python-jsonschema/check-jsonschema/compare/0.35.0...0.36.0)
* fix(tests): allow numpy>=2.3.0 for ARM64 to fix Windows ARM CI
MSYS2 upgraded from numpy 2.3.x to 2.4.0, which no longer satisfies
the ~=2.3.0 constraint. Relaxing to >=2.3.0 allows the MSYS2-provided
numpy 2.4.0 to be used.
---------
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>
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index aa7b58c..9cb3f22 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -25,14 +25,14 @@
# Clang format the codebase automatically
- repo: https://github.com/pre-commit/mirrors-clang-format
- rev: "v21.1.6"
+ rev: "v21.1.8"
hooks:
- id: clang-format
types_or: [c++, c, cuda]
# Ruff, the Python auto-correcting linter/formatter written in Rust
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.14.7
+ rev: v0.14.10
hooks:
- id: ruff-check
args: ["--fix", "--show-fixes"]
@@ -40,7 +40,7 @@
# Check static types with mypy
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: "v1.19.0"
+ rev: "v1.19.1"
hooks:
- id: mypy
args: []
@@ -120,7 +120,7 @@
# Also check spelling
- repo: https://github.com/crate-ci/typos
- rev: v1.40.0
+ rev: v1
hooks:
- id: typos
args: []
@@ -149,7 +149,7 @@
# Check schemas on some of our YAML files
- repo: https://github.com/python-jsonschema/check-jsonschema
- rev: 0.35.0
+ rev: 0.36.0
hooks:
- id: check-readthedocs
- id: check-github-workflows
diff --git a/tests/requirements.txt b/tests/requirements.txt
index 3d61669..50dd103 100644
--- a/tests/requirements.txt
+++ b/tests/requirements.txt
@@ -8,7 +8,7 @@
numpy~=1.21.5; platform_python_implementation=="CPython" and python_version>="3.8" and python_version<"3.10"
numpy~=1.22.2; platform_python_implementation=="CPython" and python_version=="3.10"
numpy~=1.26.0; platform_python_implementation=="CPython" and python_version>="3.11" and python_version<"3.13" and platform_machine!="ARM64"
-numpy~=2.3.0; platform_python_implementation=="CPython" and python_version>="3.11" and platform_machine=="ARM64"
+numpy>=2.3.0; platform_python_implementation=="CPython" and python_version>="3.11" and platform_machine=="ARM64"
numpy~=2.2.0; platform_python_implementation=="CPython" and python_version=="3.13" and platform_machine!="ARM64"
numpy==2.4.0; platform_python_implementation=="CPython" and python_version>="3.14"
pytest>=6