Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,20 @@ repos:
files: ^cuda_bindings_(?:12|13)/
types: [text]

- id: check-bindings-config
name: Validate bindings registry and package metadata
entry: python -m ci.tools.bindings_config --check-package-metadata
language: python
additional_dependencies: [packaging==26.0, pyyaml==6.0.3]
files: '^(ci/versions\.yml|cuda_bindings_(?:12|13)/(pyproject|pixi)\.toml|cuda_python/setup\.py|cuda_core/pyproject\.toml|cuda_core/cuda/core/_bindings_floor\.py)$'
pass_filenames: false

- id: check-pixi-cuda-version
name: Check pixi cuda-version pins track ci/versions.yml
entry: python ./ci/tools/check_pixi_cuda_version.py
entry: python -m ci.tools.check_pixi_cuda_version
language: python
additional_dependencies: [pyyaml==6.0.3]
files: '^(ci/versions\.yml|cuda_bindings_13/pixi\.toml|cuda_core/pixi\.toml)$'
additional_dependencies: [packaging==26.0, pyyaml==6.0.3]
files: '^(ci/versions\.yml|cuda_bindings_(?:12|13)/pixi\.toml|cuda_core/pixi\.toml)$'
pass_filenames: false

- id: check-mempool-hygiene
Expand Down Expand Up @@ -155,7 +163,7 @@ repos:
rev: "3e8a8703264a2f4a69428a0aa4dcb512790b2c8c" # frozen: v6.0.0
hooks:
- id: check-added-large-files
exclude: '^(?:cuda_bindings_13/cuda/bindings/nvml\.pyx|cuda_bindings_12/cuda/bindings/(?:driver\.pyx|runtime\.pyx\.in|nvml\.pyx))$'
exclude: '^(?:cuda_bindings_(?:12|13)/(?:cuda/bindings/(?:driver\.pyx|runtime\.pyx\.in|nvml\.pyx)|pixi\.lock))$'
- id: check-case-conflict
- id: check-docstring-first
- id: check-merge-conflict
Expand Down
4 changes: 4 additions & 0 deletions ci/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

"""CUDA Python continuous-integration support."""
26 changes: 26 additions & 0 deletions ci/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

[build-system]
requires = ["setuptools>=77.0.0"]
build-backend = "setuptools.build_meta"

[project]
name = "cuda-python-ci-tools"
version = "0.0.0"
description = "Private CI support for the CUDA Python repository"
authors = [{ name = "NVIDIA Corporation" }]
license = "Apache-2.0"
requires-python = ">=3.11"
dependencies = [
"packaging==26.0",
"PyYAML==6.0.3",
"setuptools-scm>=8,!=10.1",
]

[project.optional-dependencies]
test = ["pytest==9.1.0", "wheel"]

[tool.setuptools]
packages = ["ci", "ci.tools"]
package-dir = { ci = "." }
4 changes: 4 additions & 0 deletions ci/tools/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

"""Shared CI tools used by workflows and local validation."""
Loading
Loading