Questions tagged «sphinx-napoleon»

3
自定义PyCharm文档字符串存根(即用于google docstring或numpydoc格式)
PyCharm 2.7(或PyCharm 3)是否支持自定义docstring和doctest存根?如果是这样,如何编写这种特定类型的自定义扩展? 我当前的项目已标准化使用Google Python样式指南(http://google-styleguide.googlecode.com/svn/trunk/pyguide.html)。我喜欢PyCharm的文档字符串支持,但是目前只有两种受支持的格式是epytext和reStructureText。我想要并且愿意为自己编写一个PyCharm插件,该插件可以创建以Google或Numpydoc样式(https://pypi.python.org/pypi/sphinxcontrib-napoleon/)格式设置的文档注释存根。这里特别重要的是将PyCharm具有的类型推断功能与其他两种文档类型相结合。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.