Skip to content
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 napolean sphinx extension to allow parsing docstrings in various formats #1411

Merged
merged 1 commit into from
Jun 14, 2017

Conversation

rasto2211
Copy link
Contributor

@rasto2211 rasto2211 commented Jun 12, 2017

See the discussion on mailinglist:
https://groups.google.com/forum/#!topic/gensim/M0N4mBgi9TY

I also updated wiki:
https://github.com/RaRe-Technologies/gensim/wiki/Developer-page#documentation

If you want to see what has changed then take a look at the documentation of gensim.models.atmodel.AuthorTopicModel.update . The docstring is written in a Google style but not really properly that's the reason why it looks a bit weird. Gensim is full of docstrings in various custom made docstring formats.

@menshikh-iv
Copy link
Contributor

menshikh-iv commented Jun 13, 2017

Thank you @rasto2211. Did you hear about automated tools for docstring checking (in google style)? It's very important tool for us -- it will help us check docstrings and keep everything consistent in new PRs, automatically.

@rasto2211
Copy link
Contributor Author

To be honest, I don't know of any tool like that. There is a tool called pydocstyle which can check if docstrings are in numpy style but I did not manage to find anything like that for google style docstrings. I know that google is using pylint for checking the coding style and their config file is here, but I don't think that it checks docstrings formats. It seems that pylint only warns you if there is no docstring for a function/class.

@menshikh-iv
Copy link
Contributor

Thank you @rasto2211, congratulations on your first PR 🥇 👍

@menshikh-iv menshikh-iv merged commit f64ce71 into piskvorky:develop Jun 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants