-
Notifications
You must be signed in to change notification settings - Fork 187
False positives for D410 in Numpy convention #230
Comments
Glad you like it 😺 |
Yes. In addition, I would suggest that at the very end of the docstring, the blank line is optional. Agreed? Or is this behaviour hard to implement or controversial?
Thank you very much! |
I agree, even thought it's the way every numpy docstring I could find in their repo was formatted 😄 @Nurdok , do you think that's an overkill? Should we just ignore this case? |
Fixed in #233 . |
@FarmerSez - Thank you very much. I now get this, which are all valid suggestions to make in my opinion:
🎉 |
😄 |
@farmersez - Thank you very much for adding the Numpy convention in #226!!!
Running it on some larger projects using the Numpy convention (Numpy, Scipy, Astropy), the most common message I see is
Personally, I don't see how requiring an empty newline at the end of the docstring is useful.
But even if that is considered part of the convention, I think pydocstyle reports false positives.
For example for https://github.com/numpy/numpy/blob/master/doc/example.py I get
E.g. the last D410 is incorrect, I think: there is a blank line after the
Examples
section.The text was updated successfully, but these errors were encountered: