-
Notifications
You must be signed in to change notification settings - Fork 0
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
Enable repeat use of UCCDefault1 and update docs #268
Conversation
Checking if the read the docs build automatically does the |
559cf98
to
46c55f3
Compare
1ecf5ae
to
45c1474
Compare
45c1474
to
866df24
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks great, just a couple questions.
@@ -40,3 +40,7 @@ jobs: | |||
|
|||
- name: Run tests | |||
run: poetry run pytest ucc --verbose | |||
|
|||
- name: Run doctest | |||
# Check that code examples in docs execute as expected, and treat warnings as errors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice addition!
docs/source/api.rst
Outdated
@@ -8,7 +8,3 @@ This page details the publicly accessible functions available in ``ucc``. | |||
|
|||
.. autoclass:: ucc.transpilers.ucc_defaults.UCCDefault1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this latest change, I think the API doc looks a little bare. Do we want to leave it to #246 and
to define these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rephrasing to be sure I'm following -- suggesting to remove this section for now as there's not much detail, and then bring it back as part of #246 ?
If so, then yes, I agree that makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, that's my suggestion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated with the suggested changes and docs look good, so merging now.
866df24
to
fe3f2e2
Compare
Addresses #261 by setting up the PassManager in the
UCCDefault
initializer rather than on each run. The second commit updates the corresponding examples in the docs to reflect current module structure, converts the examples to Sphix doctest to ensure examples we can automate checking they run properly with new code changes, and adds a doctest check to the Test workflow to do that automation.