dadadel / pyment

Format and convert Python docstrings and generates patches
GNU General Public License v3.0
905 stars 62 forks source link

Numpydoc support ? #2

Closed hadim closed 10 years ago

hadim commented 10 years ago

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 !

dadadel commented 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 :)

hadim commented 10 years ago

Ok, great and thank you !

dadadel commented 10 years ago

hadim, can you connect to the IRC channel #pyment on Freenode server?

hadim commented 10 years ago

Not this afternoon. Tonight I will.

dadadel commented 10 years ago

Hi,

I started the support for numpydoc. Can you connect to IRC to speak about it?

dadadel commented 10 years ago

Hey hadim, Numpydoc is now managed (input/output) in the branch 'add_numpydoc'!

hadim commented 10 years ago

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 !

hadim commented 10 years ago

I finally had a look ! And it seems to work perfectly. Two things (not related to numpydoc I think):

hadim commented 10 years ago

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).

dadadel commented 10 years ago

It would be great to see a plugin using pyment :-) :+1:

I will later add a configuration file management to set some options among these.

dadadel commented 10 years ago

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.

dadadel commented 10 years ago

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.