-
Notifications
You must be signed in to change notification settings - Fork 110
Ensure there's a blank line between the class __doc__
and "Parameters" in build_doc
docstrings
#6004
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
…rs" in `build_doc` docstrings
would you be so kind to rebase against |
also if you could add a basic test to datalad/interface/tests/test_base.py which would demonstrate current issue (and test the fix) so we do not undo it -- would be great |
Let's wait for the tests to pass, and then we could proceed with merge. |
Codecov Report
@@ Coverage Diff @@
## maint #6004 +/- ##
==========================================
- Coverage 89.68% 87.91% -1.77%
==========================================
Files 308 305 -3
Lines 42115 42093 -22
==========================================
- Hits 37770 37006 -764
- Misses 4345 5087 +742
Continue to review full report at Codecov.
|
Test seems to fail (didn't analyze it always)
|
79bad4b
to
191233d
Compare
@yarikoptic The test should be fixed now. It turns out |
crawler fail is likely unrelated. one run of travis -- inability to download conda, unlikely to bring surprises, but I restarted the job -- better be safe than sorry ;) if would turn green -- I think we should proceed with merge. Thank you @jwodder |
Travis is happy now |
Without this change, applying
@build_doc
to a class whose docstring doesn't end in a newline, like so:will result in
__call__
getting a docstring that starts out with:and the lack of a newline between the class docstring and "Parameters" will result in Sphinx producing a warning when trying to build the documentation for the class. This PR fixes this behavior by ensuring that, if the class docstring doesn't already end with a newline, one is added, so that there are always at least two newlines (i.e., one blank line) before the "Parameters" header.