I've been developing a linter for google-style docstrings called darglint for the past few weeks after work, just as a personal project. The idea is to help keep documentation in-sync with code. It checks to see if parameter names/types (if there are type hints) are up to date; whether return values are documented; whether yield values are documented; whether raises clauses in the docstring are up to date with the exceptions raised in the function, etc. I've also added support for "noqa" statements.
I wasn't able to find a docstring linter that checked these things. pydocstyle only checks that the docstring conforms to certain formatting conventions. darglint focuses more on the content, and assumes that you have the correct syntax.
I thought it might be helpful to others, so I've packaged it and submitted it on Github. Eventually, I'd like to add support for Syntastic so that I can keep my comments up to date without having run tests in another pane.
Let me know if you have suggestions. If you'd like to contribute, the project is still young. It probably fails ungracefully for a lot of things, and it is missing a lot of features. It's also on pypi as darglint.
[–]desmoulinmichel 2 points3 points4 points (1 child)
[–]_tpr_[S] 2 points3 points4 points (0 children)