-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG] DOC fix some sphinx warnings #11241
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
Conversation
Oh no, I've landed on a numpydoc bug I probably created! |
---------- | ||
.. [1] P. J. Rousseeuw. Least median of squares regression. Journal of American | ||
Statistical Ass., 79:871, 1984. | ||
.. [2] Johanna Hardin, David M Rocke. The distribution of robust distances. |
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.
I'm not sure whether it's good to remove references, even if they're not used.
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.
Oh. I had expected that these would be present in the class docs. Apparently not.
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.
@VirgileFritsch, it's unclear to the reader what the relevance of these references in plot_robust_vs_empirical_covariance.py
is, since they are not cited anywhere. Are these references here, rather than in MinCovDet
, because they are the inspiration for the example?
The warning diff: diff -d --unchanged-line-format '= %l
' --old-line-format='< %l
' --new-line-format='> %l
' <(curl "https://circleci.com/api/v1.1/project/github/scikit-learn/scikit-learn/24674/output/104/0?file=true" | grep WARNING | sort) <(curl "https://circleci.com/api/v1.1/project/github/scikit-learn/scikit-learn/24739/output/104/0?file=true" | grep WARNING | sort | grep -v 'Could not obtain' | grep -v 'image file not readable') | pbcopy output:
(There's something quirky going on in diffing a few of the lines that are in both versions) |
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.
LGTM
Thanks for this tedious work !
I'm going to revert the removal of the references, and merge this. |
While it would be wonderful to enable sphinx-build with
-W
so that we actually find out when a new documentation build warning is created, here are fixes to several of the numerous warnings we currently get.See also #11083 (comment) where I discuss one unresolved set of warnings.
Resolving these one-by-one takes a fair bit of labour and extensive knowledge of sphinx/reST :(
I'll give a list of the removed warnings once Circle completes.