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

Qiskit / qiskit-ibm-runtime / 29942340657 / 4
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: feature/minimal-version-in-prs
DEFAULT BRANCH: main
Ran 22 Jul 2026 05:31PM UTC
Files 332
Run time 18s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Jul 2026 05:26PM UTC coverage: 87.607% (-0.08%) from 87.69%
29942340657.4

push

github

web-flow
Use BaseModel for options_models (#3042)

### Summary

Proof of concept for using `BaseModel` for new program options at
`options_models`:
* Add `BaseOptionsModel` as the pure pydantic base class for options
   * replicates `update()` and `asdict()` for backwards compatibility
   * trims the `dir()` return for auto-completion conciseness
* Revise existing `option_models`
* inherit from `BaseOptionsModel` instead of using `pydantic.dataclass`
   * avoid `Field(default_factory=dict)` pattern, for readability
* use `Annotated` pattern for validators (replacing validators for
non-serializable classes with `InstanceOf`)
* revise docstrings (length, rely on types for users discovering
options, other misc tweaks)
   * focus on keeping them as containers and lean
      * conversion responsibilities moved to `converters.py`
      * revise class-level constants  
* Adjust the rest of the codebase
   * replace `asdict()` with `.model_dump()`
   * other misc adjustments
* Tests
   * add tests for the base model
   * adjust existing tests

### Details and comments

Fixes #3041

### AI/LLM disclosure

- [x] I didn't use LLM tooling, or only used it privately.

8985 of 10256 relevant lines covered (87.61%)

0.88 hits per line

Source Files on job unit-tests_python3.10-ubuntu-latest - 29942340657.4
  • Tree
  • List 332
  • Changed 29
  • Source Changed 29
  • Coverage Changed 29
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 29942340657
  • 244b9cbb on github
  • Prev Job for on gh-readonly-queue/main/pr-3042-9414c1d7939e31625598a9eab453479135f40e6b (#29857492373.3)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc