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

Qiskit / qiskit-ibm-runtime / 12013683683
83%

Build:
DEFAULT BRANCH: main
Ran 25 Nov 2024 03:52PM UTC
Jobs 13
Files 236
Run time 2min
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

25 Nov 2024 03:46PM UTC coverage: 80.105%. Remained the same
12013683683

push

github

web-flow
Fix type hints in docs for PUBs and improve Sphinx config (#2052)

Closes https://github.com/Qiskit/qiskit-ibm-runtime/issues/1877. We now use `EstimatorPubLike` and `SamplerPubLike` for the type hints, rather than Sphinx fully expanding the types into extremely long values shown in #1877.

To fix the type hints, we have to stop using `sphinx-autodoc-typehints` and instead use autodoc's builtin support for type hints. I didn't realize we were still using `sphinx-autodoc-typehints` - the other Qiskit projects migrated off a while ago.

This PR also makes some other improvements to align with changes we made in Qiskit Addons & qiskit-ibm-transpiler:

* always show inheritance in class pages for the base class
* index page should show the PyPI package name in code syntax
* don't show signatures in `autosummary` tables, since they're noisy
* show type hints for parameters that don't have docstring

## Introduces a regression: type hints for properties

Unfortunately, switching off of `sphinx-autodoc-typehints` results in https://github.com/Qiskit/documentation/issues/2346. This is a quirk of autosummary that we cannot easily fix. We have a plan to fix it, although realistically won't get to it until Q1 and possibly Q2.

In the meantime, consider repeating some of the type information in the docstring. For example, in

```
<Attribute id="qiskit_ibm_runtime.EstimatorV2.mode">
    Return the execution mode used by this primitive.
```

You could rewrite to say

```
<Attribute id="qiskit_ibm_runtime.EstimatorV2.mode">
    Return the execution mode used by this primitive, either :class:~`.Session` or ~:class:~`.Batch`.
```

6579 of 8213 relevant lines covered (80.1%)

9.71 hits per line

Jobs
ID Job ID Ran Files Coverage
1 unit-tests_python3.10-ubuntu-latest - 12013683683.1 25 Nov 2024 03:53PM UTC 234
78.95
GitHub Action Run
2 unit-tests_python3.9-windows-latest - 12013683683.2 25 Nov 2024 03:56PM UTC 234
77.01
GitHub Action Run
3 unit-tests_python3.12-windows-latest - 12013683683.3 25 Nov 2024 03:59PM UTC 234
77.16
GitHub Action Run
4 unit-tests_python3.9-ubuntu-latest - 12013683683.4 25 Nov 2024 03:53PM UTC 234
78.81
GitHub Action Run
5 unit-tests_python3.11-macos-latest - 12013683683.5 25 Nov 2024 03:52PM UTC 234
78.95
GitHub Action Run
6 unit-tests_python3.10-windows-latest - 12013683683.6 25 Nov 2024 03:56PM UTC 234
77.11
GitHub Action Run
7 unit-tests_python3.12-ubuntu-latest - 12013683683.7 25 Nov 2024 03:54PM UTC 234
78.95
GitHub Action Run
8 unit-tests_python3.11-windows-latest - 12013683683.8 25 Nov 2024 03:56PM UTC 234
77.16
GitHub Action Run
9 unit-tests_python3.11-ubuntu-latest - 12013683683.9 25 Nov 2024 03:53PM UTC 234
78.95
GitHub Action Run
10 unit-tests_python3.12-macos-latest - 12013683683.10 25 Nov 2024 03:53PM UTC 234
78.95
GitHub Action Run
11 unit-tests_python3.8-ubuntu-latest - 12013683683.11 25 Nov 2024 03:53PM UTC 236
79.94
GitHub Action Run
12 unit-tests_python3.10-macos-latest - 12013683683.12 25 Nov 2024 03:53PM UTC 234
78.95
GitHub Action Run
13 unit-tests_python3.8-windows-latest - 12013683683.13 25 Nov 2024 03:57PM UTC 236
78.23
GitHub Action Run
Source Files on build 12013683683
  • Tree
  • List 236
  • Changed 10
  • Source Changed 9
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #12013683683
  • 7c5e87c8 on github
  • Prev Build on main (#11994269359)
  • Next Build on main (#12015877883)
  • Delete
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

© 2025 Coveralls, Inc