Skip to content

Compile with mypyc - #2586

Draft
DanielNoord wants to merge 3 commits into
PyCQA:mainfrom
DanielNoord:mypyc
Draft

Compile with mypyc#2586
DanielNoord wants to merge 3 commits into
PyCQA:mainfrom
DanielNoord:mypyc

Conversation

@DanielNoord

Copy link
Copy Markdown
Member

Closes #1953

Tested this against pylint and I can run the compiled version of isort against it.
However, there doesn't seem to be a significant speed gain unfortunately.

Tests are also an issue, but that can come later.

@DanielNoord

Copy link
Copy Markdown
Member Author

Blocked on mypyc/mypyc#1204

Without it we can't use the default_factory=dict in our settings I think.

@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 99.26%. Comparing base (55f06c5) to head (6aadf47).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2586      +/-   ##
==========================================
- Coverage   99.39%   99.26%   -0.14%     
==========================================
  Files          41       41              
  Lines        3156     3136      -20     
  Branches      682      682              
==========================================
- Hits         3137     3113      -24     
- Misses         11       13       +2     
- Partials        8       10       +2     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@DanielNoord

Copy link
Copy Markdown
Member Author

CI passes now :)

We'll need a release from mypy to be able to publish wheels to PyPI but this is a nice step towards getting this into the hands of users :)

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.

(🎁) Distribute compiled wheels

1 participant