Skip to content

test: enable mypy typing checks for test/components/extractors - #12483

Merged
davidsbatista merged 2 commits into
deepset-ai:mainfrom
ShousenZHANG:test/type-check-extractor-tests
Aug 27, 2026
Merged

test: enable mypy typing checks for test/components/extractors#12483
davidsbatista merged 2 commits into
deepset-ai:mainfrom
ShousenZHANG:test/type-check-extractor-tests

Conversation

@ShousenZHANG

Copy link
Copy Markdown
Contributor

Related Issues

Proposed Changes:

test/components/extractors/ was not in the repository mypy target, so its five modules were not being checked by hatch run test:types. Claimed in this comment; it does not overlap fetchers/ (#12435), the only other increment in flight.

Unlike the previous increments, this one needs no source changes. The directory already type-checks cleanly against main — the path was simply never added to the target, so CI has not been running mypy over it. Any typing regression introduced in those tests today would go unnoticed. This adds the path and closes that gap.

The single line changed keeps the target list in alphabetical order (evaluators/ -> extractors/ -> generators/).

How did you test it?

  • mypy test/components/extractors/ against main, before the change: Success: no issues found in 5 source files — confirming the directory is already clean and the gap is purely in coverage.
  • Full target after the change: hatch run test:types -> Success: no issues found in 468 source files (461 before).
  • hatch run test:unit test/components/extractors/ -> 86 passed, 5 deselected.
  • hatch run fmt-check -> clean across the repo (6785 files).

Notes for the reviewer

Happy to fold this into another PR if a one-line change on its own is noisier than it is worth — it seemed better to surface the coverage gap than to leave it.

No release note: this is test/CI configuration only, which AGENTS.md excludes from the release-note requirement.

This PR was fully generated with an AI assistant. I have reviewed the changes and run the relevant tests.

Checklist

  • I have read the contributors guidelines and the code of conduct.
  • I have updated the related issue with new insights and changes.
  • I have added unit tests and updated the docstrings.
  • I've used one of the conventional commit types for my PR title.
  • I have documented my code.
  • I have added a release note file - not needed here: AGENTS.md scopes the requirement to user-facing changes, and this is test/CI configuration only.
  • I have run pre-commit hooks and fixed any issue.

The directory already type-checks cleanly, but was never added to the `types`
target, so CI was not running mypy over it and a regression introduced there
would have gone unnoticed. Adding the path closes that gap; no source changes
were needed.
@ShousenZHANG
ShousenZHANG requested a review from a team as a code owner August 27, 2026 04:23
@ShousenZHANG
ShousenZHANG requested review from a team and bogdankostic and a lite review from Copilot and removed request for a team August 27, 2026 04:23
@vercel

vercel Bot commented Aug 27, 2026

Copy link
Copy Markdown

@ShousenZHANG is attempting to deploy a commit to the deepset Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

  • Ensure hatch run test:types (mypy) includes test/components/extractors/ so those extractor tests are covered by CI type-checking, as part of the incremental rollout tracked in #10396.

Changes:

  • Add test/components/extractors/ to the mypy target list in the Hatch test environment types script (kept in alphabetical order around evaluators/ and generators/).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

Copy link
Copy Markdown
Contributor

Coverage report

This PR does not seem to contain any modification to coverable code.

@vercel

vercel Bot commented Aug 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
haystack-docs Ignored Ignored Preview Aug 27, 2026 1:38pm

Request Review

@davidsbatista
davidsbatista requested review from davidsbatista and removed request for bogdankostic August 27, 2026 13:38
@davidsbatista
davidsbatista merged commit 15e90d0 into deepset-ai:main Aug 27, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants