Repository navigation
chore: handle ty suppressions for optional integration types - #1519
Conversation
Signed-off-by: Will Killian <[email protected]>
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Scope the diagnostic override pyproject.toml |
The ty configuration ignores unused-ignore-comment diagnostics in the Google ADK scopes and LangChain tool codec integration tests. Comments note that the suppressions may be unused when the optional frameworks are not installed. |
Priority:
Estimated code review effort: 2 (Simple) | ~5 minutes
Change: Other
Possibly related PRs
- NVIDIA/NeMo-Relay#1498: Adds a
tysuppression in the LangChain test file that this change also targets. - NVIDIA/NeMo-Relay#1518: Reports the unused-suppression check failure that this change addresses.
Merge Risk: 
Minimal · up to b1ea5
-
This configuration-only change has no evidenced merge-blocking risk.
Pre-merge checks: 
5
-
Full details: Docstring Coverage
-
Explanation
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
License DiffCompared against Lockfile license changesLockfile License ChangesRustAdded
Removed
Updated/Changed
NodeAdded
Removed
Updated/Changed
PythonAdded
Removed
Updated/Changed
Status output |
Overview
Make the repository-wide
tyhook pass when optional Google ADK and LangChain dependencies are absent.Details
The Check job for #1518 reports three
unused-ignore-commentdiagnostics in existing integration tests. With neither integration enabled, CI leaves the frameworks uninstalled and allows their unresolved imports. Consequently,tycannot see the deprecatedParallelAgentor the intentionalToolMessage.typeoverride, and flags their inline suppressions as unused.Disable only
unused-ignore-commentfor the two affected test files. Keep the diagnostic-specific inline suppressions for checks with the frameworks installed; all other files retain unused-ignore checking.Validation:
ty 0.0.91.No runtime or public API changes.
Where should the reviewer start?
The narrowly scoped
tool.ty.overridesentry inpyproject.toml.Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)
Summary by CodeRabbit