-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add docstrings linting with 'pydocstyle' using 'flake8' #1483
Conversation
550bc65
to
1ca547f
Compare
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.
Very nice overall. This should make my job in #1482 easier (after a painful rebase/merge!). The only other thing I'm not sure about is indenting examples. I don't think it is necessary, but I think you've done that here? If I'm wrong, please ignore me!
Yes, I've found indented the examples of a function, but is fixed now. Let me know if you see something more wrong. |
This pull request add configuration and installation for
flake8-docstrings
andflake8-rst-docstrings
. It ensures that docstring haven't common errors, that docstrings are written for public functions... unifying in general the code base.I've ignored some rules either because it generated too much work to correct them (
D100
,D104
) or are too much intrusive (D401
, for example).Other minor changes are:
positioning.py
.PIL_to_npimage
.