Start to cleanup PyOutline and PyCue docstrings #589
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Link the Issue(s) this Pull Request is related to.
Related to #559
Summarize your change.
Update PyOutline and PyCue docstrings to resolve warnings when building the API reference. Also improve some of the formatting to call out parameters and return types. I also fixed some inaccurate docstrings as I came across them and improved formatting of some of the Python example code in the docstrings. There's more to do, including updating types so that they link between the generated docs and to improve coverage, clarity, and accuracy of the content. I made the changes using a mixture of regex search and replace and some manually editing.
Mostly, the changes are to update docstrings in the default expected by Sphinx, from:
To the following:
The output has been updated from something like the following:
To the following updated output:
One file to pay particular attention to is
pycue/opencue/wrappers/limit.py
. The indentation throughout this file was different from the others and was causing Sphinx to throw an exception when I added a description of the class.The build output is now clean with no warnings or errors: