-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Fix docstrings with the sections in the wrong order #24280 #24288
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
Hello @benjaminr! Thanks for updating the PR.
Comment last updated on December 15, 2018 at 23:46 Hours UTC |
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 for fixing these @benjaminr
Can you add the validation of the error to ci/code_checks.sh
. It's explained in the issue description.
Codecov Report
@@ Coverage Diff @@
## master #24288 +/- ##
===========================================
- Coverage 92.22% 43.01% -49.22%
===========================================
Files 162 162
Lines 51824 51820 -4
===========================================
- Hits 47795 22288 -25507
- Misses 4029 29532 +25503
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #24288 +/- ##
==========================================
+ Coverage 92.28% 92.28% +<.01%
==========================================
Files 162 162
Lines 51831 51837 +6
==========================================
+ Hits 47830 47837 +7
+ Misses 4001 4000 -1
Continue to review full report at Codecov.
|
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.
can you add to ci/code_checks.sh
the validation of GL07
in the call to scripts/validate_docstrings.py
, so we can see that everything is correct now?
Also, the errors in the CI are because there is a test comparing that the common methods of If you try to reproduce the test failure locally, note that |
Can you merge master too. We just merged #24132, and with this PR, all the sections should be in the right order now. When you add the check to |
…tution decorator in docstrings where commonly repeated
…ugh aggregate method docstrings still have the issue of sharing a docstring with Notes directly after Returns. This means any further appends with a See Also section are out of order.
We've got this cases failing in the CI:
If they can't be fixed with the |
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.
looks good, just couple of comments
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.
Looks really good, much better now. Just two small details, and let's see how the CI finishes, and this should be ready to be merged.
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 a lot for this @benjaminr, nice fixes
No problem, thanks for your patience @datapythonista :) |
thanks @benjaminr |
git diff upstream/master -u -- "*.py" | flake8 --diff