-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Support numpy or Google docstrings #60
Comments
We could add a new flag |
Would be a very nice feature ! |
While this is still open, I wonder what do people currently use to format their numpy/Google docstrings? I could not find any alternatives to docformatter, and it's hard to believe developers are doing this by hand and not losing their sanity in the process. |
@ubalklen there is also https://github.com/dadadel/pyment The last time I tried it, it had a problem that running But that should be a solvable problem. |
Thanks @mhsekhavat. I've just tried pyment, but it doesn't wrap long lines. |
any update on this? |
@Goldziher I recently started helping out with maintenance. I've been focusing on merging all the open PRs and addressing issues that were related to PEP 257 conventions. Once these are addressed, I'll release a new version (v1.5.0) of docformatter to PyPi. After that I plan to tackle the group of issues related to the various docstring styles (#43, #60, #68, #70, #78, #79). Once that group of issues is addressed, I'll release v1.6.0. Hopefully that'll happen in the next month or so. |
Sounds great. Lemme know when it's ready to test on a codebase 😉 |
Now that I'm thinking of it, I just stumbled upon the |
@kdeldycke I am aware of it now, thanks! It looks promising for dealing with the various syntax flavors. |
This would be a great feature. Am about to convert a library from sphinx-style to google, and will be rewrapping a bunch of lines by hand. Another library that parses, if you’re not already aware, is Griffe, which is used by mkdocstrings. |
Would be very needed !!! |
This has been marked as low urgency, but for me, the lack of support for Google doscstrings means I cannot use docformatter. |
We did it by hand. And we liked it! (Though now that I'm no longer under G's thumb, I just started looking for such a tool and stumbled onto this issue.)
I just discovered https://github.com/heavenshell/py-doq which generates NEW docstrings, but explicitly will not update heavenshell/py-doq#30 It seems to me that the various tools out there all touch on the subject, but none hits all of the bullet points (at least the ones I want):
|
Are there any plans to do this? Is this already implemented?
The text was updated successfully, but these errors were encountered: