Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor nb-tester config and args #1351

Merged
merged 6 commits into from
May 13, 2024
Merged

Refactor nb-tester config and args #1351

merged 6 commits into from
May 13, 2024

Conversation

frankharkins
Copy link
Member

@frankharkins frankharkins commented May 13, 2024

This script now has some non-trivial logic to do with skipping, mocking, writing, etc. This refactor combines the Config and args objects so we have a single point of decision making. You may find it easier to review each commit separately.

This is prework for #1319.

Slight behaviour change as we'll now print excluded notebooks. We
didn't do this initially to avoid noise, but since we only exclude one
notebook, I think it's better to be verbose.
Slight behaviour change in the printed messages.
@frankharkins frankharkins marked this pull request as ready for review May 13, 2024 12:24
Copy link
Collaborator

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

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

Nice improvement! Thanks for making this a dedicated PR

scripts/nb-tester/qiskit_docs_notebook_tester/__init__.py Outdated Show resolved Hide resolved
Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
@frankharkins frankharkins enabled auto-merge May 13, 2024 17:32
@frankharkins frankharkins added this pull request to the merge queue May 13, 2024
Merged via the queue into main with commit c6ea53f May 13, 2024
2 checks passed
@frankharkins frankharkins deleted the FH/refactor-config branch May 13, 2024 17:35
frankharkins added a commit to frankharkins/documentation that referenced this pull request Jul 22, 2024
This script now has some non-trivial logic to do with skipping, mocking,
writing, etc. This refactor combines the `Config` and args objects so we
have a single point of decision making. You may find it easier to review
each commit separately.

This is prework for Qiskit#1319.

---------

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants