Skip to content

fix(pre-commit): add missing packages to mypy additional_dependencies#102

Merged
zaebee merged 1 commit into
mainfrom
fix/pre-commit-mypy-deps
Jun 9, 2026
Merged

fix(pre-commit): add missing packages to mypy additional_dependencies#102
zaebee merged 1 commit into
mainfrom
fix/pre-commit-mypy-deps

Conversation

@zaebee

@zaebee zaebee commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Summary

The mirrors-mypy pre-commit hook runs mypy in an isolated virtualenv that only contains packages listed under additional_dependencies. Without the full set, mypy reports [import-not-found] errors for tree-sitter, rich, typer, and pytest.

Added to additional_dependencies:

  • rich>=15.0.0
  • typer>=0.26.7
  • tree-sitter>=0.25.2
  • tree-sitter-python>=0.25.0
  • tree-sitter-typescript>=0.23.2
  • pytest>=9.0.3

Test plan

  • Run git commit on any changed .py file — mypy hook should pass without import errors

🤖 Generated with Claude Code

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>
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@sonarqubecloud

sonarqubecloud Bot commented Jun 9, 2026

Copy link
Copy Markdown

@zaebee zaebee merged commit b88ab89 into main Jun 9, 2026
3 checks passed
@zaebee zaebee deleted the fix/pre-commit-mypy-deps branch June 9, 2026 01:58
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.

1 participant