Skip to content

Commit 65bedfb

Browse files
authored
Merge branch 'main' into clang-format
2 parents 1ea9e62 + fd5f89d commit 65bedfb

2 files changed

Lines changed: 77 additions & 0 deletions

File tree

‎.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.

‎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)
@@ -244,6 +247,46 @@ hook environment, so no system-wide installation is required. Vendored code
244247
`.pre-commit-config.yaml`. To format in your editor, install the same version
245248
with `pip install clang-format==23.1.3`.
246249

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

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

0 commit comments

Comments
 (0)