-
Notifications
You must be signed in to change notification settings - Fork 928
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
Fix all warnings in Python docs #13789
Conversation
This reverts commit 228c6eab23f8a2a7390e8b99259748056abbf32c.
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.
blocking while I investigate some build path changes resulting from this PR
It looks like the build paths are different as a result of the changes in this PR. For example, compare the preview environments below:
I see the same problem on the |
@@ -3,8 +3,9 @@ | |||
|
|||
# You can set these variables from the command line, and also | |||
# from the environment for the first two. | |||
SPHINXOPTS ?= | |||
SPHINXOPTS ?= -n -v |
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.
Is there a reason why these flags don't match the cudf
Makefile flags?
Will warnings be treated as errors for dask-cudf
in a follow-up PR?
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.
Yes, I didn't want to also try and fix dask-cudf issues in the same PR. This one is large enough already. I also don't know dask-cudf as well so may want to get someone more familiar to work through those issues.
/merge |
This PR is a follow-up to #13789 that adds specified lists of methods/attributes to some classes; removes redundancy in the autosummary templates we are using and adds documentation explaining how they work; and removes various pieces of outdated code in our conf.py to make it easier to maintain going forward. Authors: - Vyas Ramasubramani (https://github.com/vyasr) Approvers: - Bradley Dice (https://github.com/bdice) - Matthew Roeschke (https://github.com/mroeschke) URL: #13826
Description
The Sphinx documentation has historically been warning-filled, which makes it difficult to identify when there are real issues like missing APIs. This PR fixes all the current issues and converts warnings to errors during the build, ensuring that doc builds are reliable indicators of issues in the future.
I will say that there are a few changes that may not be exactly what we want, particularly in cases of including APIs that may not be documented in exactly the same way in pandas. However, I think we'd be better off merging this PR so that we can get to a 0 warnings state and then work through further improvements in follow-ups where the build will be more robust.
Here is an inexhaustive list of the most significant changes:
Checklist