Closed hadim closed 10 years ago
Actually, I called that kind of docstrings "groups docstrings" as I support several kinds in input but not yet in output. I can add the support for that format also as soon as I have some time :)
Ok, great and thank you !
hadim, can you connect to the IRC channel #pyment on Freenode server?
Not this afternoon. Tonight I will.
Hi,
I started the support for numpydoc. Can you connect to IRC to speak about it?
Hey hadim, Numpydoc is now managed (input/output) in the branch 'add_numpydoc'!
Hi @dadadel and thank you for your work ! I am sorry not being more involved but I am very busy lately. I will have a look as soon as I can to add_numpydoc.
Thanks again !
I finally had a look ! And it seems to work perfectly. Two things (not related to numpydoc I think):
def __init__()
: any chance here also to make that configurable ?I use Sublime Text as text editor. I will try to make a plugin to be able to run pyment on the current opened file (However I dont know when I will have time to do it).
It would be great to see a plugin using pyment :-) :+1:
__init__
, you mean the docstring generated for __init__
with its parameters? How do you manage the case where there's a docstring below the class AND below the __init__
?I will later add a configuration file management to set some options among these.
I added the management of excluded and optional sections for the class. It is not yet configurable at the level of the application but I set optional the following sections for the 'raise', 'see also', 'ref', 'note', 'other', 'example', 'method', 'attributes' sections so they won't be generated if not found in input. I merged numpydoc management to master.
The question concerning you init/class comment need is still opened.
I added option "-d" or "--init2class" to pyment in order to move the docstring from __init__
to class if there was no docstring attached to class and there was one for the init.
I use Sphinx to generate documentation but I also use numpydoc as docstring format (which seems pretty similar to Google style).
Any chance for you to adapt Google style to numpydoc ?
Links :
I will be able to try pyment as soon as numpydoc is supported.
Nice project anyway !