Skip to content

Replace mypy with ty#18

Merged
ScDor merged 8 commits into
masterfrom
replace-mypy-with-ty
Feb 10, 2026
Merged

Replace mypy with ty#18
ScDor merged 8 commits into
masterfrom
replace-mypy-with-ty

Conversation

@ScDor
Copy link
Copy Markdown
Owner

@ScDor ScDor commented Feb 10, 2026

This PR replaces mypy with ty (Astral's fast type checker) and moves the configuration to .pre-commit-config.yaml as requested.

Changes:

  • Replaced mypy with ty in pyproject.toml.
  • Modernized Rule model in adopt_ruff/models/rule.py to use Pydantic V2 model_config for better compatibility with ty.
  • Converted prek.toml to .pre-commit-config.yaml.
  • Added ty as a local hook in .pre-commit-config.yaml using uv run ty check.

@ScDor ScDor changed the base branch from master to prek-migration February 10, 2026 20:40
@ScDor ScDor closed this Feb 10, 2026
@ScDor ScDor reopened this Feb 10, 2026
@ScDor ScDor force-pushed the replace-mypy-with-ty branch from a4c5e49 to 1847877 Compare February 10, 2026 20:41
@ScDor ScDor changed the base branch from prek-migration to master February 10, 2026 20:49
@ScDor ScDor merged commit 75c08c7 into master Feb 10, 2026
1 check 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.

1 participant