[pre-commit.ci] pre-commit autoupdate - #22025
Closed
pre-commit-ci[bot] wants to merge 2 commits into
Closed
Conversation
updates: - [github.com/MarcoGorelli/cython-lint: v0.18.1 → v0.19.0](MarcoGorelli/cython-lint@v0.18.1...v0.19.0) - [github.com/pre-commit/mirrors-mypy: v1.13.0 → v1.20.0](pre-commit/mirrors-mypy@v1.13.0...v1.20.0) - [github.com/pre-commit/mirrors-clang-format: v20.1.4 → v22.1.2](pre-commit/mirrors-clang-format@v20.1.4...v22.1.2) - [github.com/codespell-project/codespell: v2.4.1 → v2.4.2](codespell-project/codespell@v2.4.1...v2.4.2) - [github.com/astral-sh/ruff-pre-commit: v0.9.3 → v0.15.9](astral-sh/ruff-pre-commit@v0.9.3...v0.15.9) - [github.com/rapidsai/pre-commit-hooks: v1.4.1 → v1.4.3](rapidsai/pre-commit-hooks@v1.4.1...v1.4.3)
Contributor
|
pre-commit.ci autofix |
Contributor
|
I'm going to handle these updates myself, there are a lot of changes. |
rapids-bot Bot
pushed a commit
that referenced
this pull request
Jun 16, 2026
Updates all pre-commit hooks to their latest versions except `clang-format` since we typically keep that version synchronized across RAPIDS for devcontainers. Replaces #22025 ## Hook updates | Hook | Old | New | |------|-----|-----| | codespell | v2.4.1 | v2.4.2 | | dependency-file-generator | v1.20.2 | v1.20.3 | | zizmor | v1.24.1 | v1.25.2 | | cython-lint | v0.18.1 | v0.19.0 | | rapidsai/pre-commit-hooks | v1.4.1 | v1.5.1 | | ruff | v0.9.3 | v0.15.17 | | mypy | v1.13.0 | v2.1.0 | ## Notable changes ### ruff v0.15.17 - Renamed `TCH` rule prefix to `TC` in all pyproject.toml configs. - Fixed new lint errors: `RUF059`, `RUF043`, `RUF005`, `RUF046`, `PLW1508`. - Converted `Scope` to `enum.StrEnum` (`UP042`). - Suppressed `PLW1641` (frozen dataclass generates `__hash__` with custom `__eq__`). - Suppressed `TC001`/`TC002` where runtime imports are needed. - Added `PLC0415` to global ignore (intentional deferred/conditional imports). - Excluded `*.pyi` from root ruff config (stubs use PEP 695 syntax, root targets Python 3.11). - Removed deprecated `UP038` ignore from `python/cudf_polars/pyproject.toml`. ### mypy v2.1.0 - Removed 16 unused `# type: ignore` comments that mypy v2 no longer needs. - Added targeted `# type: ignore[code]` suppressions for 26 pre-existing type errors newly caught by mypy v2. - Fixed `UseDataPageMask` enum stub to use `member = value` syntax per PEP 435 semantics change. ### clang-format (not updated) Updating clang-format from v20.1.8 to v22.1.5 causes a conflict between `ReflowComments` and the verify-copyright hook (the long SPDX header line exceeds ColumnLimit and gets wrapped, which the copyright hook then unwraps, creating an infinite oscillation). This will be addressed in a separate PR. Authors: - Vyas Ramasubramani (https://github.com/vyasr) Approvers: - Matthew Roeschke (https://github.com/mroeschke) - James Lamb (https://github.com/jameslamb) - Peter Andreas Entschev (https://github.com/pentschev) URL: #22905
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
updates: