fix(pre-commit): add missing packages to mypy additional_dependencies#102
Merged
Conversation
The mirrors-mypy hook runs in an isolated virtualenv. Without the full
dependency set, mypy cannot find tree-sitter, rich, typer, and pytest
imports, causing [import-not-found] errors in CI.
Added: rich, typer, tree-sitter, tree-sitter-python,
tree-sitter-typescript, pytest.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
The
mirrors-mypypre-commit hook runs mypy in an isolated virtualenv that only contains packages listed underadditional_dependencies. Without the full set, mypy reports[import-not-found]errors fortree-sitter,rich,typer, andpytest.Added to
additional_dependencies:rich>=15.0.0typer>=0.26.7tree-sitter>=0.25.2tree-sitter-python>=0.25.0tree-sitter-typescript>=0.23.2pytest>=9.0.3Test plan
git commiton any changed.pyfile — mypy hook should pass without import errors🤖 Generated with Claude Code