Skip to content

Fix find_optional_imports.py#6606

Merged
mergify[bot] merged 2 commits into
Qiskit:mainfrom
levbishop:optional_import
Jun 21, 2021
Merged

Fix find_optional_imports.py#6606
mergify[bot] merged 2 commits into
Qiskit:mainfrom
levbishop:optional_import

Conversation

@levbishop
Copy link
Copy Markdown
Member

In #5798 find_optional_imports.py had the superficially-superfluous import qiskit line removed. Unfortunately this stopped the script from doing its job to check if qiskit made use of the optional imports.

This PR adds this back, with a comment explaining why not to drop it, and makes a couple other minor tweaks to the file.

@levbishop levbishop requested a review from a team as a code owner June 20, 2021 21:34
@levbishop levbishop assigned levbishop and mtreinish and unassigned levbishop Jun 20, 2021
@levbishop levbishop added the type: qa Issues and PRs that relate to testing and code quality label Jun 20, 2021
@levbishop
Copy link
Copy Markdown
Member Author

This PR is part of the solution to #6608

@levbishop levbishop mentioned this pull request Jun 20, 2021
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. I'm not sure why I removed that import qiskit line in #5798 I should have known better because I wrote the script originally in #5582.

@mtreinish mtreinish added automerge Changelog: None Do not include in the GitHub Release changelog. labels Jun 21, 2021
@mergify mergify Bot merged commit b0b9058 into Qiskit:main Jun 21, 2021
@levbishop levbishop deleted the optional_import branch August 12, 2021 22:53
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. 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.

2 participants