-
Notifications
You must be signed in to change notification settings - Fork 347
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
Ensure valid RST in docstrings #1141
Conversation
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.
This is great, thanks for doing this. I'm not sure what's going on with the semaphore tests, test pass for me locally.
As mentioned in #1140, let's wait on @karalekas to see what he thinks about rending bra/ket notation. Otherwise, this looks great so far.
Apparently semaphoreci is unhappy, but I don't see any error message - this is my first time interacting with that platform so I may be missing where to click (or perhaps I need to register an account with them)? |
I think you need to be a project admin to see the semaphore logs? It looks like the semaphore tests are failing because the quilc server was unresponsive... lot's of timeout errors trying to connect to quilc. |
Reran it, looks like the build is passing now! Thanks for doing this -- I'd agree with @appleby that I think all docstrings should be valid RST. Our API documentation is currently incomplete, which is why some of the docstrings aren't included, but in general I think we should aim for them all to be valid and consistent. As for braket notation, I think that the double backticks or inline math suggestions are the way to go. I'd lean toward double backticks in most situations because we don't need to be rendering math when it is gratuitous, but I'm sure there will be situations where we are writing out equations where using |
I think this is all the low hanging fruit, the remaining possible issues:
Both The Finally the |
Personally, I think it's fine to punt on the above issues that don't have an obvious solution. If you don't mind, please just add a line to the changelog and I think this is good to go. |
Change log entry added (rebased first to pre-empt the likely merge conflict in the change log). |
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.
This is great thanks for contributing.
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.
Thanks (again) for contributing!! 🙌
Description
Work in progress for #1140, fixing RST violations reported by docutils via flake8-rst-docstrings
Checklist
auto-close keywords.
including author and PR number (@username, gh-xxx).