Skip to content

Commit a2fb804

Browse files
authored
pre-commit: bump ruff, mypy, cython-lint, and stubgen-pyx (#3209)
* pre-commit: bump ruff, mypy, cython-lint, and stubgen-pyx Routine version updates; no known CVEs in any of the bumped packages. The hash change in .pre-commit-config.yaml also busts the pre-commit environment cache, so CI builds fresh hook environments using pip 26.2.2 (installed by the harden-pip step added in #3197). - astral-sh/ruff-pre-commit v0.16.9 -> v0.17.2 ruff 0.17.0 breaking changes (changed default Python version, removed some DTZ rules from defaults, added F406 to defaults) are all neutralized by the repo's explicit target-version="py311" setting and explicit "DTZ"/"F" selects in ruff.toml. - pre-commit/mirrors-mypy v2.3.1 -> v2.4.0 No breaking changes. - MarcoGorelli/cython-lint v0.21.1 -> v0.22.0 Adds a new lint rule for functions that are not actually inlined. No new failures on this codebase. - stubgen-pyx 0.2.22 -> 0.2.23 Two bug fixes (unhashable class assignments, semicolon indentation). Cython<3.3.0 constraint is unchanged. Regenerates the .pyi header comments in all 51 cuda.core stubs (version string only; no signature changes). Skipped (already current): security-workflows v0.4.0, pre-commit-hooks v6.0.0, pygrep-hooks v1.10.0, actionlint v1.7.12, lychee-bin 0.24.2. Skipped (no vuln on pinned version; deferred): numpy 2.4.2, Cython 3.2.9 (stubgen-pyx 0.2.23 requires <3.3.0). Refs #3195 Signed-off-by: Ralf Juengling <[email protected]>
1 parent 0bdf9e9 commit a2fb804

53 files changed

Lines changed: 58 additions & 58 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.pre-commit-config.yaml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
- id: secret-scan-trufflehog
2525

2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: a56c0b927e6465d37cae3e97d35d4d18ab2b96cd # frozen: v0.16.9
27+
rev: f368fb366ff7f2f808dd324b83a6d32267799e19 # frozen: v0.17.2
2828
hooks:
2929
- id: ruff-check
3030
args: [--fix, --show-fixes]
@@ -104,7 +104,7 @@ repos:
104104
files: ^cuda_core/cuda/.*\.(pyx|pxd)$
105105
pass_filenames: false
106106
additional_dependencies:
107-
- stubgen-pyx==0.2.22
107+
- stubgen-pyx==0.2.23
108108
- Cython==3.2.9
109109

110110
# Link checking for authored documentation files
@@ -184,7 +184,7 @@ repos:
184184
- id: rst-inline-touching-normal
185185

186186
- repo: https://github.com/pre-commit/mirrors-mypy
187-
rev: 7ff8d35ae36a7d2b968f2f90b4c723e292e594ee # frozen: v2.3.1
187+
rev: 2834ec6639549dd6796205c8f011dedcd587288b # frozen: v2.4.0
188188
hooks:
189189
- id: mypy
190190
alias: mypy-pathfinder
@@ -209,7 +209,7 @@ repos:
209209
exclude: ^\.github/workflows/coverage.yml$
210210

211211
- repo: https://github.com/MarcoGorelli/cython-lint
212-
rev: "eb2f695bb80387913b8cb1f91ba7ff6cb3026715" # frozen: v0.21.1
212+
rev: "35dbc940c2bd4499ebf39aba00ad717e05cec9b5" # frozen: v0.22.0
213213
hooks:
214214
- id: cython-lint
215215
args: [--no-pycodestyle]

‎cuda_core/cuda/core/_build_info.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated by stubgen-pyx v0.2.22 from cuda_core/cuda/core/_build_info.pyx
1+
# This file was generated by stubgen-pyx v0.2.23 from cuda_core/cuda/core/_build_info.pyx
22

33
"""What this build of cuda.core compiled against.
44

‎cuda_core/cuda/core/_context.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated by stubgen-pyx v0.2.22 from cuda_core/cuda/core/_context.pyx
1+
# This file was generated by stubgen-pyx v0.2.23 from cuda_core/cuda/core/_context.pyx
22

33
from collections.abc import Sequence
44
from dataclasses import dataclass

‎cuda_core/cuda/core/_device.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated by stubgen-pyx v0.2.22 from cuda_core/cuda/core/_device.pyx
1+
# This file was generated by stubgen-pyx v0.2.23 from cuda_core/cuda/core/_device.pyx
22

33
import threading
44

‎cuda_core/cuda/core/_device_resources.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated by stubgen-pyx v0.2.22 from cuda_core/cuda/core/_device_resources.pyx
1+
# This file was generated by stubgen-pyx v0.2.23 from cuda_core/cuda/core/_device_resources.pyx
22

33
from collections.abc import Sequence as SequenceABC
44
from dataclasses import dataclass

‎cuda_core/cuda/core/_dlpack.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated by stubgen-pyx v0.2.22 from cuda_core/cuda/core/_dlpack.pyx
1+
# This file was generated by stubgen-pyx v0.2.23 from cuda_core/cuda/core/_dlpack.pyx
22

33
from enum import IntEnum
44
from typing import Any, Callable, TypedDict

‎cuda_core/cuda/core/_event.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated by stubgen-pyx v0.2.22 from cuda_core/cuda/core/_event.pyx
1+
# This file was generated by stubgen-pyx v0.2.23 from cuda_core/cuda/core/_event.pyx
22

33
from dataclasses import dataclass
44

‎cuda_core/cuda/core/_graphics.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated by stubgen-pyx v0.2.22 from cuda_core/cuda/core/_graphics.pyx
1+
# This file was generated by stubgen-pyx v0.2.23 from cuda_core/cuda/core/_graphics.pyx
22

33
from typing import Sequence
44

‎cuda_core/cuda/core/_kernel_arg_handler.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated by stubgen-pyx v0.2.22 from cuda_core/cuda/core/_kernel_arg_handler.pyx
1+
# This file was generated by stubgen-pyx v0.2.23 from cuda_core/cuda/core/_kernel_arg_handler.pyx
22

33
from typing import Any, Sequence, TypedDict
44

‎cuda_core/cuda/core/_launch_config.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated by stubgen-pyx v0.2.22 from cuda_core/cuda/core/_launch_config.pyx
1+
# This file was generated by stubgen-pyx v0.2.23 from cuda_core/cuda/core/_launch_config.pyx
22

33
from typing import Any
44

0 commit comments

Comments
 (0)