Skip to content

fix(ci): make lint pass with latest ty#49

Merged
selvamHexo merged 1 commit into
mainfrom
fix/ci-lint-ty-unresolved-imports
Jul 2, 2026
Merged

fix(ci): make lint pass with latest ty#49
selvamHexo merged 1 commit into
mainfrom
fix/ci-lint-ty-unresolved-imports

Conversation

@selvamHexo

Copy link
Copy Markdown
Contributor

Latest ty exits non-zero on warn-level diagnostics, so the lint job failed on unresolved third-party imports (it installed no deps).

  • Install the package (-e ".[dev]") in the lint job so ty resolves core libs.
  • Set unresolved-import = "ignore" for the lazily-imported optional providers (openhands, pydantic_ai, google.generativeai).

Verified: ty check sia/ passes with latest ty + .[dev] installed.

Latest ty exits non-zero on warn-level diagnostics, so the dependency-free
lint job failed on unresolved third-party imports. Install the package with
dev deps so ty type-checks against real stubs, and ignore unresolved-import
for the lazily-imported optional providers.
@selvamHexo
selvamHexo force-pushed the fix/ci-lint-ty-unresolved-imports branch from 94958fd to 4817a47 Compare June 30, 2026 15:38
@selvamHexo
selvamHexo requested a review from yogendrahexo June 30, 2026 15:42

@yogendrahexo yogendrahexo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@selvamHexo
selvamHexo merged commit 8c50303 into main Jul 2, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants