Switch to Pyrefly for type checking instead of mypy
Assessment
This issue has not been assessed yet.
Description
Is your feature request related to a use case or problem?
A number of other projects are switching from mypy to Pyrefly for type checking Python code. We should do the same for Quantumlib projects if possible. Pyrefly is much faster than mypy and has better IDE support.
What solution or approach do you envision?
- Use Pyrefly's facility for creating a configuration based on an existing mypy configuration
- Run Pyrefly to find and fix whatever problems it flags
- Add a Pyrefly hook configuration to
.pre-commit-config.yaml - Replace the type check in CI with a Pyrefly-based one
How urgent is this for you?
P2 – needed within two quarters
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 438
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from quantumlib/OpenFermion
-
PhaseFitEstimator cannot fit the signal from its own reduced sampling gridPossibly taken @madcpf claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
quantumlib/OpenFermion#1479 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
quantumlib/OpenFermion#1478 ·
-
Add a CODEOWNERS fileMay be free again @mhucka claimed this 159 days ago, and no pull request is open. Opena: devops e: maintainer
quantumlib/OpenFermion#1337 · 3 comments · 1 assignee ·
-
Add workflow to run create-env-files.sh when Dependabot changes dependenciesPossibly taken @rosspeili claimed this 142 days ago. Opena: devops e: experienced
quantumlib/OpenFermion#1332 · 4 comments · 1 assignee ·
-
Remove global random seed used for testingPossibly taken @SripriyaDevarapalli claimed this 54 days ago. Opena: performance a: python e: experienced no QC knowledge needed
Difficulty 4/5 3-5 days Newbie friendliness 52/100
quantumlib/OpenFermion#1060 · 6 comments ·
All issues in quantumlib/OpenFermion
Similar issues
-
soup prune-prompt exits 1 after writing its output on a file over 100,000 rows, and reports a capped row count otherwisePossibly taken @abdulwaarith0 claimed this today. Openneeds-triage
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
MakazhanAlpamys/Soup#3690 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug data-types native-format
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
ClickHouse/clickhouse-connect#1320 ·
Maintainers usually reply within 1 day
-
accepted
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
future-agi/future-agi#6392 ·
Maintainers usually reply within 1 day