Skip to content

chore: handle ty suppressions for optional integration types - #1519

Merged
willkill07 merged 1 commit into
NVIDIA:mainfrom
willkill07:chore/ty-optional-integration-ignores
Oct 26, 2026
Merged

willkill07 merged 1 commit into
NVIDIA:mainfrom
willkill07:chore/ty-optional-integration-ignores

Conversation

@willkill07

@willkill07 willkill07 commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Overview

Make the repository-wide ty hook pass when optional Google ADK and LangChain dependencies are absent.

  • I confirm this contribution is my own work, or I have the right to submit it under this project's license.
  • I searched existing issues and open pull requests, and this does not duplicate existing work.

Details

The Check job for #1518 reports three unused-ignore-comment diagnostics in existing integration tests. With neither integration enabled, CI leaves the frameworks uninstalled and allows their unresolved imports. Consequently, ty cannot see the deprecated ParallelAgent or the intentional ToolMessage.type override, and flags their inline suppressions as unused.

Disable only unused-ignore-comment for 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:

  • Reproduced all three diagnostics with the locked ty 0.0.91.
  • Focused and repository-wide type checks passed with optional frameworks absent and with the CI integration extras installed.
  • Staged pre-commit checks passed.
  • Language runtime suites were not run because only type-checker configuration changed.

No runtime or public API changes.

Where should the reviewer start?

The narrowly scoped tool.ty.overrides entry in pyproject.toml.

Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

Summary by CodeRabbit

  • Tests
    • Updated static-analysis settings for two integration test files so unused ignore comments no longer generate warnings. This does not change application behavior.

@willkill07
willkill07 requested a review from a team as a code owner October 26, 2026 13:14
@github-actions github-actions Bot added size:XS PR is extra small Maintenance CI or Build or general repository maintenance labels Oct 26, 2026
@willkill07 willkill07 self-assigned this Oct 26, 2026
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 046575a and b1ea5ed.

Files selected for processing: 1
  • pyproject.toml

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 9 remain after this review.

Recent review details
Context from checks skipped due to timeout: 2
  • GitHub Check: Changes / Detect
  • GitHub Check: Detect docs changes
Additional context used
Code guidelines: 4
RELEASING.md — auto-discovered
.agents/skills/contribute-integration/SKILL.md — configured
.agents/skills/maintain-packaging/SKILL.md — configured
.agents/skills/update-project-version/SKILL.md — configured
Path-based instructions: 4
Applicability reference: AGENTS.md: # NeMo Relay Repository Guidance Keep release-process policy in maintainer sources such as `RELEASING.md` and Source excerpt: The Python package version is derived at packaging time.

CodeRabbit inference engine (RELEASING.md)

Files:

  • pyproject.toml
Source excerpt: Keep NeMo Relay optional Source excerpt: Use stable, documented framework or plugin APIs Source excerpt: Wrap tool and LLM paths at the correct framework boundary Source excerpt: Preserve the framework's original behavior wh...

CodeRabbit inference engine (.agents/skills/contribute-integration/SKILL.md)

Files:

  • pyproject.toml
Source excerpt: Python packaging in `pyproject.toml`

CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)

Files:

  • pyproject.toml
Source excerpt: Python surfaces use PEP 440 translations where required; Cargo, npm, and plugin manifests use the repository SemVer form.

CodeRabbit inference engine (.agents/skills/update-project-version/SKILL.md)

Files:

  • pyproject.toml
Additional comments: 1
pyproject.toml: 1

189-198: LGTM!

Walkthrough

The change adds a ty override for two integration test files. It ignores unused-ignore-comment diagnostics in those files.

Changes

ty diagnostic configuration

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: Low

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Other

Possibly related PRs

Merge Risk: Minimal · up to b1ea5

This configuration-only change has no evidenced merge-blocking risk.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title follows Conventional Commits format with the allowed lowercase type chore, an imperative summary, no trailing period, and 60 characters.
Description check Passed The description includes all required sections, completed contribution and duplication checks, detailed rationale, validation results, reviewer guidance, and a valid Relates to issue reference.
Docstring Coverage Passed 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…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
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.

@willkill07 willkill07 added this to the 0.11 milestone Oct 26, 2026
@github-actions

Copy link
Copy Markdown

License Diff

Compared against origin/main.

Lockfile license changes

Lockfile License Changes

Rust

Added

  • None

Removed

  • None

Updated/Changed

  • None

Node

Added

  • None

Removed

  • None

Updated/Changed

  • None

Python

Added

  • None

Removed

  • None

Updated/Changed

  • None
Status output
[license-diff] selected languages: rust, node, python
[license-diff] generating current inventory
[license-diff] current: generating Rust inventory
[license-diff] current: Rust inventory complete (487 packages)
[license-diff] current: generating Node inventory
[license-diff] current: Node inventory complete (424 packages)
[license-diff] current: generating Python inventory
[license-diff] current: Python inventory complete (158 packages)
[license-diff] current inventory complete
[license-diff] checking out base ref origin/main into a temporary worktree
[license-diff] base: generating Rust inventory
[license-diff] base: Rust inventory complete (487 packages)
[license-diff] base: generating Node inventory
[license-diff] base: Node inventory complete (424 packages)
[license-diff] base: generating Python inventory
[license-diff] base: Python inventory complete (158 packages)
[license-diff] base inventory complete
[license-diff] removing temporary base worktree
[license-diff] comparing inventories
[license-diff] rendering Markdown output
[license-diff] done

@willkill07
willkill07 merged commit c809072 into NVIDIA:main Oct 26, 2026
47 checks passed
@willkill07
willkill07 deleted the chore/ty-optional-integration-ignores branch October 30, 2026 14:46

This branch was previously deployed

1 inactive deployment
fern — b1ea5ed9 Deployed Oct 26, 2026 by willkill07 via Clean up docs preview #6560
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Maintenance CI or Build or general repository maintenance size:XS PR is extra small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants