1414
1515# Please update the rev: SHAs below with this command:
1616# pre-commit autoupdate --freeze
17- # This unchanged maintenance-source import is inactive until its integration layer.
18- exclude : ^cuda_bindings_12/
19-
2017repos :
2118 # Runs first so a leaked credential blocks the commit before any formatter runs.
2219 # Self-installing: the hook downloads a pinned, checksum-verified trufflehog on
3128 hooks :
3229 - id : ruff-check
3330 args : [--fix, --show-fixes]
34- exclude : (^cuda_bindings_13 /cuda/bindings/_internal/_fast_enum\.py$)|(.*\.pyi$)
31+ exclude : (^cuda_bindings_(?:12|13) /cuda/bindings/_internal/_fast_enum\.py$)|(.*\.pyi$)
3532 - id : ruff-format
3633 exclude : .*\.pyi$
3734
7168 name : Check generated-file seals
7269 entry : python ./toolshed/check_generated_file_seals.py
7370 language : python
74- files : ^cuda_bindings_13 /
71+ files : ^cuda_bindings_(?:12|13) /
7572 types : [text]
7673
7774 - id : check-pixi-cuda-version
9693 - " _" # fake script name, because bash considers $0 (the first argument) to be the script name
9794 language : system
9895 files : ' ^.*/docs/source/.*\.md$'
96+ # The imported CUDA 12.9 documentation retains its historical MyST
97+ # sources; new documentation elsewhere must continue to use reST.
98+ exclude : ' ^cuda_bindings_12/docs/source/'
9999
100100 - id : stubgen-pyx-cuda-core
101101 name : Generate .pyi stubs for cuda_core
@@ -155,7 +155,7 @@ repos:
155155 rev : " 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c" # frozen: v6.0.0
156156 hooks :
157157 - id : check-added-large-files
158- exclude : cuda_bindings_13/cuda/bindings/nvml.pyx
158+ exclude : ' ^(?: cuda_bindings_13/cuda/bindings/nvml\ .pyx|cuda_bindings_12/cuda/bindings/(?:driver\.pyx|runtime\.pyx\.in|nvml\.pyx))$ '
159159 - id : check-case-conflict
160160 - id : check-docstring-first
161161 - id : check-merge-conflict
@@ -164,14 +164,14 @@ repos:
164164 - id : check-yaml
165165 - id : debug-statements
166166 - id : end-of-file-fixer
167- exclude : &gen_exclude '^(?:cuda_python/README\.md|(?:.*/)?CLAUDE\.md|(?:.*/)?\.git_archival\.txt|cuda_bindings_13 /cuda/bindings/.*\.in?|cuda_bindings_13 /docs/source/module/.*\.rst?|.*\.pyi)$'
167+ exclude : &gen_exclude '^(?:cuda_python/README\.md|(?:.*/)?CLAUDE\.md|(?:.*/)?\.git_archival\.txt|cuda_bindings_(?:12|13) /cuda/bindings/.*\.in?|cuda_bindings_(?:12|13) /docs/source/module/.*\.rst?|.*\.pyi)$'
168168 - id : mixed-line-ending
169169 - id : trailing-whitespace
170170 exclude : |
171171 (?x)^(?:
172172 cuda_python/README\.md|
173- cuda_bindings_13 /cuda/bindings/.*\.in?|
174- cuda_bindings_13 /docs/source/module/.*\.rst?|
173+ cuda_bindings_(?:12|13) /cuda/bindings/.*\.in?|
174+ cuda_bindings_(?:12|13) /docs/source/module/.*\.rst?|
175175 .*\.patch$
176176 )$
177177
@@ -213,7 +213,7 @@ repos:
213213 hooks :
214214 - id : cython-lint
215215 args : [--no-pycodestyle]
216- exclude : ^cuda_bindings_13 /
216+ exclude : ^cuda_bindings_(?:12|13) /
217217 additional_dependencies :
218218 - Cython==3.2.9
219219
0 commit comments