-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
DOC Ensures that load_boston passes numpydoc validation #22247
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
β¦NORE_LIST and ensures that it passes numpydoc validation
Hi @thomasjpfan I followed the instructions given in Addresses #21350 I removed sklearn.datasets._base.load_boston from FUNCTION_DOCSTRING_IGNORE_LIST After runing "pytest sklearn/tests/test_docstrings.py -k sklearn.datasets._base.load_boston" platform win32 -- Python 3.9.9, pytest-6.2.5, py-1.11.0, pluggy-1.0.0 ======================== 2 skipped in 0.09s ======================== I also run "pytest sklearn" and got the below result Since there is no error message I created this PR and now I am getting this error |
Hi @thomasjpfan Thanks
|
Thanks for the PR, @purnachandramansingh! |
Hi @jmloyola After installing all the dependencies properly I found there are 3 problems with the documentation. i.e
I fixed GL03 & RT09 error codes successfully but now got stuck at GL09: Deprecation warning should precede extended summary. Line: 1180 I also referred to the numpydoc documentation I will be very grateful if you can guide me on this case. |
You can read more about the problem with You can do something similar as they did in that PR:
We are showing a deprecation message two times here. After you do that, run In the future, when you face an error, print the message here so it is easier for us to help you ^^ |
Thanks for the help @jmloyola Actually, I am completely new to this git interface so a bit confused, I will keep this in my mind for future conversation.
|
It's better to have a focused discussion on your github PR itself rather than a generic channel if you need still help related to this PR. Feel free to ask more precise questions if @jmloyola answers above are not enough. |
Note: there is also a failure related to black: Run the
|
Sure @ogrisel |
@thomasjpfan I opened #22264 to fix the problem with the check-changelog linter. |
β¦ from that directive into the @deprecate decorator
Is there any way to build documentation for a single file only (the file I changed) ?
I did the same and now it passed pytest, flake8 and black. |
You can not do that (as far as I know). Remember that the documentation has hyperlinks connecting each module together.
I would leave the warning below the description of the function. Something like this:
Note that there was an error in Also, I used "Boston" for description of the function instead of "boston". |
Thanks, @jmloyola I am doing these changes now. |
All done π |
Now the test test_load_boston_warning is failing :( We forgot to run pytest there to catch it. @ogrisel, @thomasjpfan, @jjerphan, what do you think? How should we handle this? Beforehand, the information was duplicated. One time in the Should we change |
I think the warning message is important enough to remain in both the Moving forward, I think we can remove the |
Hi @thomasjpfan, @jmloyola |
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.
LGTM |
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
Thank you so much @thomasjpfan π As per the rule mentioned in #21350 I have successfully completed 3 PRs. could you please suggest any other issue to contribute or shall I continue my contribution to #21350? |
Reference Issues/PRs
Addresses #21350
What does this implement/fix? Explain your changes.
This PR ensures that sklearn.datasets._base.load_boston passes numpydoc validation
Any other comments?
My first PR to my favorite Library! : )
Thank You!
cc: (pair programming partner) @Ramanand-Yadav