• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Qiskit / qiskit-ibm-runtime / 26891375691

03 Jun 2026 02:26PM UTC coverage: 86.072% (-0.1%) from 86.217%
26891375691

push

github

web-flow
Automate TYPE_CHECKING and isort checking (#2877)

<!--
⚠️ The pull request title should be short detailed and understandable
for all.
⚠️ Also, please add a release note file using reno if the change needs
to be
  documented in the release notes.
⚠️ If your pull request fixes an open issue, please link to the issue.

✅ I have added the tests to cover my changes.
✅ I have updated the documentation accordingly.
✅ I have read the CONTRIBUTING document.
-->

### Summary

Enable:
* https://docs.astral.sh/ruff/rules/#isort-i
* https://docs.astral.sh/ruff/rules/#flake8-type-checking-tc

in the `ruff` configuration, so we get automatic `if TYPE_CHECKING`
enforcing (helps with import cycles) and we also get consistent ordering
of imports.

### Details and comments

Fixes #2563

### AI/LLM disclosure

- [x] I didn't use LLM tooling, or only used it privately.
- [ ] I used the following tool to help write this PR description:
- [ ] I used the following tool to generate or modify code:

7842 of 9111 relevant lines covered (86.07%)

9.4 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

74.12
/qiskit_ibm_runtime/quantum_program/quantum_program.py


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc