Skip to content

Fix docs build with Pygments 2.15#9948

Merged
mtreinish merged 1 commit intoQiskit:mainfrom
jakelishman:relax-pygments-pin
Apr 11, 2023
Merged

Fix docs build with Pygments 2.15#9948
mtreinish merged 1 commit intoQiskit:mainfrom
jakelishman:relax-pygments-pin

Conversation

@jakelishman
Copy link
Copy Markdown
Member

Summary

The problem was because the latest version of Pygments included a docstring in Lexer.__init__ that includes a crossreference to an object that Qiskit naturally doesn't have. We don't need to inherit the __init__ docstring for this object; we're only interested in documenting the existence of object itself.

Details and comments

This is the proper fix for the problem that #9938 quick-fixed.

The problem was because the latest version of Pygments included a
docstring in `Lexer.__init__` that includes a crossreference to an
object that Qiskit naturally doesn't have.  We don't need to inherit the
`__init__` docstring for this object; we're only interested in
documenting the existence of object itself.
@jakelishman jakelishman added type: qa Issues and PRs that relate to testing and code quality stable backport potential Make Mergify open a backport PR to the most recent stable branch on merge. Changelog: None Do not include in the GitHub Release changelog. labels Apr 11, 2023
@jakelishman jakelishman requested a review from a team as a code owner April 11, 2023 16:46
@qiskit-bot
Copy link
Copy Markdown
Collaborator

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

One or more of the the following people are requested to review this:

  • @Qiskit/terra-core

@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 4669964516

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 9 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.0005%) to 85.432%

Files with Coverage Reduction New Missed Lines %
qiskit/transpiler/passes/synthesis/unitary_synthesis.py 1 95.14%
crates/accelerate/src/vf2_layout.rs 8 86.44%
Totals Coverage Status
Change from base Build 4668920973: -0.0005%
Covered Lines: 67793
Relevant Lines: 79353

💛 - Coveralls

Copy link
Copy Markdown
Member

@mtreinish mtreinish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for fixing this so we can remove the version cap

@mtreinish mtreinish added this pull request to the merge queue Apr 11, 2023
Merged via the queue into Qiskit:main with commit e598593 Apr 11, 2023
mergify Bot pushed a commit that referenced this pull request Apr 11, 2023
The problem was because the latest version of Pygments included a
docstring in `Lexer.__init__` that includes a crossreference to an
object that Qiskit naturally doesn't have.  We don't need to inherit the
`__init__` docstring for this object; we're only interested in
documenting the existence of object itself.

(cherry picked from commit e598593)
jakelishman added a commit that referenced this pull request Apr 11, 2023
The problem was because the latest version of Pygments included a
docstring in `Lexer.__init__` that includes a crossreference to an
object that Qiskit naturally doesn't have.  We don't need to inherit the
`__init__` docstring for this object; we're only interested in
documenting the existence of object itself.

(cherry picked from commit e598593)

Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
@jakelishman jakelishman deleted the relax-pygments-pin branch April 12, 2023 17:34
giacomoRanieri pushed a commit to giacomoRanieri/qiskit-terra that referenced this pull request Apr 16, 2023
The problem was because the latest version of Pygments included a
docstring in `Lexer.__init__` that includes a crossreference to an
object that Qiskit naturally doesn't have.  We don't need to inherit the
`__init__` docstring for this object; we're only interested in
documenting the existence of object itself.
king-p3nguin pushed a commit to king-p3nguin/qiskit-terra that referenced this pull request May 22, 2023
The problem was because the latest version of Pygments included a
docstring in `Lexer.__init__` that includes a crossreference to an
object that Qiskit naturally doesn't have.  We don't need to inherit the
`__init__` docstring for this object; we're only interested in
documenting the existence of object itself.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changelog: None Do not include in the GitHub Release changelog. stable backport potential Make Mergify open a backport PR to the most recent stable branch on merge. type: qa Issues and PRs that relate to testing and code quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants