Repository navigation
Expand file tree
/
Copy path.coderabbit.yaml
More file actions
138 lines (132 loc) · 6.81 KB
/
Copy path.coderabbit.yaml
File metadata and controls
138 lines (132 loc) · 6.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
# Docs: https://docs.coderabbit.ai/reference/configuration
language: "en-US"
tone_instructions: "Be concise, technical, and specific. Prioritize correctness, safety, and maintainability over style nits."
reviews:
profile: assertive
review_status: true
review_details: true
collapse_walkthrough: false
request_changes_workflow: false
pre_merge_checks:
title:
mode: error
requirements: >-
Title must follow Conventional Commits format:
type(optional-scope)[!]: concise imperative summary
Allowed types: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert.
Use lowercase type and scope. If the change is a breaking change, add a ! suffix before the colon.
Keep it under 72 characters and do not use a trailing period.
description:
mode: warning
issue_assessment:
mode: warning
custom_checks:
- name: Separate documentation from code
mode: warning
instructions: |
Stacked PRs are allowed. Evaluate only this PR's diff against its
declared base branch; do not combine changes from separate PRs in a
stack or warn merely because a documentation PR depends on a code PR.
Inspect the changed-file list, including old and new paths for
renames. Exempt docs/reference/api/: generated API reference changes
may stay in the same PR as code and must not trigger a split comment.
Determine whether the PR changes docs/ files outside that exempt
subtree or the repository-root README.md and also changes code.
Code includes application or library source, tests, executable
examples, and build or runtime configuration. Documentation snippets,
prose, and documentation-only metadata or configuration do not count
as code for this check.
If both documentation and code are changed, post one concise review
comment recommending separate PRs: keep non-exempt docs/ and root
README.md changes in a non-code documentation PR, put code changes in a separate
PR, and link the two PRs and coordinate their merge timing so the
documentation stays aligned with the implementation.
Pass without a split recommendation when only documentation or only
code is changed, or when documentation is combined only with other
non-code changes. This is advisory guidance, not a merge blocker.
auto_title_placeholder: "@coderabbitai"
auto_title_instructions: |
Generate the PR title using Conventional Commits format:
type(optional-scope)[!]: concise imperative summary
Allowed types: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert.
Prefer scopes from this repository when clear: core, cli, python, schemas, adapters, docs, ci, deps
Use lowercase type and scope. If the change is a breaking change, add a ! suffix before the colon.
Keep it under 72 characters and do not use a trailing period.
auto_review:
base_branches: ["main", "release/.*"]
enabled: true
drafts: true
auto_incremental_review: true
path_filters:
- "!target/**"
- "!**/target/**"
- "!.venv/**"
- "!**/.venv/**"
- "!**/node_modules/**"
- "!**/.pytest_cache/**"
- "!**/.ruff_cache/**"
- "!.tmp/**"
- "!docs/python-sdk/**"
path_instructions:
- path: "crates/fabric-core/src/**/*.rs"
instructions: |
Review the Rust core for runtime lifecycle correctness, handle validation, capability routing accuracy, schema stability, and error semantics.
Public API changes should match committed schemas, tests, and documentation.
- path: "crates/fabric-python/**/*"
instructions: |
Treat native binding changes as public API changes. Check JSON/type conversion, error propagation, GIL/thread behavior, and parity with the Python SDK.
- path: "sdk/python/nemo-fabric-runtime/src/nemo_fabric/**/*"
instructions: |
Review Python SDK changes for typed API consistency, import-time dependency neutrality, async/session behavior, and parity with the native extension.
Stubs and runtime implementations should stay aligned.
- path: "schemas/**/*"
instructions: |
Schemas are generated public contract snapshots. Check that schema diffs correspond to intentional Rust type changes and are covered by core tests.
- path: "tests/**"
instructions: |
Tests should cover the behavior promised by the changed API surface, including error paths, lifecycle cleanup, and SDK/native parity where relevant.
- path: "{adapters/**,examples/**}"
instructions: |
Review adapter and example changes for command correctness, config/schema consistency, artifact handling, and compatibility with the public NeMo Fabric contracts.
- path: "{docs/**,README.md,AGENTS.md}"
instructions: |
Review documentation for technical accuracy against the current API, command correctness, and consistency with generated schemas.
For links between files under docs/, require paths relative to the source file with the target file's .mdx extension so they work in both Fern builds and repository browsers. Flag Fern site-root links such as [NeMo Fabric overview](/nemo/fabric/about-nemo-fabric/overview); use the repository-relative equivalent, such as [NeMo Fabric overview](../about-nemo-fabric/overview.mdx).
- path: "{*.md,**/*.md,**/*.mdx,**/*.ipynb}"
instructions: |
Enforce the product name in user-facing prose: use "NVIDIA NeMo Fabric" on first use and "NeMo Fabric" thereafter. Flag standalone capitalized "Fabric" when it refers to the product. Do not flag the lowercase `fabric` CLI command, package/import/crate names, code identifiers, API symbols, configuration keys, file paths, or unrelated generic uses of the word.
- path: "**/SKILL.md"
instructions: |
Do not flag SKILL.md files for missing SPDX headers. Skill entrypoints intentionally start with YAML frontmatter instead.
Verify that every SKILL.md keeps valid YAML frontmatter with at least name and description fields before the Markdown body.
poem: false
sequence_diagrams: true
suggested_reviewers: false
tools:
clippy:
enabled: true
ruff:
enabled: true
shellcheck:
enabled: true
yamllint:
enabled: true
markdownlint:
enabled: true
gitleaks:
enabled: true
osvScanner:
enabled: true
semgrep:
enabled: true
knowledge_base:
code_guidelines:
enabled: true
filePatterns:
- "AGENTS.md"
- "CLAUDE.md"
- "CONTRIBUTING.md"
- ".agents/skills/**/*.md"