Skip to content

Commit 8c54d33

Browse files
authored
Merge branch 'main' into fix/2694-vmm-host-numa
2 parents e9a2441 + fd5f89d commit 8c54d33

89 files changed

Lines changed: 56005 additions & 1758 deletions

File tree

Some content is hidden

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

‎.github/CODERABBIT.md‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!-- SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -->
2+
<!-- SPDX-License-Identifier: Apache-2.0 -->
3+
4+
# CodeRabbit Configuration
5+
6+
This document explains how CodeRabbit is configured for CUDA Python. For review
7+
commands and guidance, see the
8+
[CodeRabbit section of the contributing guide](../CONTRIBUTING.md#coderabbit).
9+
For complete product documentation, see the
10+
[CodeRabbit documentation](https://docs.coderabbit.ai/).
11+
12+
CUDA Python configures CodeRabbit through [`.coderabbit.yaml`](../.coderabbit.yaml)
13+
in the repository root. For pull requests from a branch in the same repository,
14+
the configuration in that branch is used for the review. Pull requests from
15+
forks use the target branch's configuration instead, so changes to
16+
`.coderabbit.yaml` in a fork do not affect that review.
17+
18+
When setting up or updating CodeRabbit:
19+
20+
1. Keep repository-specific settings in `.coderabbit.yaml`.
21+
2. Use `@coderabbitai configuration` on a pull request to inspect the resolved
22+
configuration. This is useful when checking whether CodeRabbit is using the
23+
expected repository settings for that pull request.
24+
3. Use `@coderabbitai generate configuration` to export the resolved
25+
configuration if a new baseline is needed. This is useful when moving
26+
settings into a reviewable repository configuration file.
27+
4. Keep configuration changes small and reviewable.
28+
5. Use `reviews.path_instructions` for path-specific review guidance.
29+
6. Use `knowledge_base.code_guidelines.filePatterns` for CUDA Python guidance
30+
files that CodeRabbit should read as review context.
31+
32+
The CUDA Python configuration should keep comments focused on correctness, API
33+
stability, performance, security, and other high-impact issues. Avoid enabling
34+
features that add noisy generated comments or code by default.

‎.pre-commit-config.yaml‎

Lines changed: 5 additions & 5 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
@@ -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|cuda_bindings_12/cuda/bindings/(?:driver\.pyx|runtime\.pyx\.in|nvml\.pyx))$'
158+
exclude: '^(?:cuda_bindings_13/cuda/bindings/(?:nvml\.pyx|_v2/driver\.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
@@ -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]

‎CONTRIBUTING.md‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ Thank you for your interest in contributing to CUDA Python! Based on the type of
2828
- [Enabling git symlinks](#enabling-git-symlinks)
2929
- [Type stubs for cuda.core](#type-stubs-for-cudacore)
3030
- [Pre-commit](#pre-commit)
31+
- [CodeRabbit](#coderabbit)
32+
- [Review Guidance](#review-guidance)
33+
- [Pull Request Reviews](#pull-request-reviews)
3134
- [Pixi lockfiles](#pixi-lockfiles)
3235
- [Signing Your Work](#signing-your-work)
3336
- [Code signing](#code-signing)
@@ -235,6 +238,46 @@ between commits, leaving stale headers or out-of-date stubs in the history.
235238
If the hook isn't installed, `pre-commit run` will print a visible warning
236239
reminding you to run `pre-commit install`.
237240

241+
## CodeRabbit
242+
243+
This section explains how to use CodeRabbit for CUDA Python pull request review.
244+
For complete product documentation, see the
245+
[CodeRabbit documentation](https://docs.coderabbit.ai/).
246+
247+
### Review Guidance
248+
249+
We treat CodeRabbit feedback as review assistance, not as a merge requirement by
250+
itself. Maintainers remain responsible for deciding whether comments are
251+
actionable and whether a pull request has adequate tests and CI coverage.
252+
253+
### Pull Request Reviews
254+
255+
Automatic reviews may be disabled or restricted by the repository
256+
configuration. PR authors and maintainers can request a review explicitly by
257+
posting a comment on the pull request:
258+
259+
```text
260+
@coderabbitai review
261+
```
262+
263+
Use a full review when the pull request should be reviewed again from scratch:
264+
265+
```text
266+
@coderabbitai full review
267+
```
268+
269+
Other useful commands:
270+
271+
- `@coderabbitai help` shows the current command reference.
272+
- `@coderabbitai configuration` shows the active configuration.
273+
- `@coderabbitai summary` can be placed in the pull request description as a
274+
placeholder for the generated summary.
275+
- `@coderabbitai pause` and `@coderabbitai resume` pause or resume automatic
276+
review behavior. This is useful when a pull request is still being updated
277+
frequently and should not be reviewed again until it is ready.
278+
- `@coderabbitai ignore` can be placed in the pull request description to
279+
disable automatic reviews.
280+
238281
## Pixi lockfiles
239282

240283
The repository checks in a `pixi.lock` next to each `pixi.toml`. Those lockfiles

0 commit comments

Comments
 (0)