Coder Social home page Coder Social logo

Comments (6)

wizmer avatar wizmer commented on September 26, 2024

Hi @naiquevin , happy new year ! What do you think of my proposal ? I think using a real python backend to generate the docstring can be much more powerful than using the the elisp code we currently have. It can also handle more cases and also more styles (it currently supports google, numpy, reST).

from sphinx-doc.el.

naiquevin avatar naiquevin commented on September 26, 2024

Hi @wizmer Happy new year to you too. I missed your earlier message, sorry about that. I don't mind the change you are proposing. But IMO, it'd be good if the current implementation of generating docstring in elisp is also supported as a fallback in case pydocstring is not installed in the environment. What do you think?

from sphinx-doc.el.

zzantares avatar zzantares commented on September 26, 2024

Have you guys considered pyment? seems more active project than pydocstring and IIUIC does the same thing isn't it?

from sphinx-doc.el.

wizmer avatar wizmer commented on September 26, 2024

@naiquevin Yes, I think keeping a fallback option would be nice.

@zzantares Thanks for your suggestion, I was not aware of pyment, it seems indeed more active and also more complete. I'll give it a try.

from sphinx-doc.el.

timlod avatar timlod commented on September 26, 2024

On the emacs side of things there's also https://github.com/glyph/python-docstring-mode, unfortunately unmaintained currently.
Bringing it up because it's tangentially related. It also uses its own implementation. Perhaps there's room to build something that does both?

from sphinx-doc.el.

wizmer avatar wizmer commented on September 26, 2024

I have started refactoring pyment here dadadel/pyment#112
I also plan to enhance it and make it more customizable.

That will be for the backend side but when I'll be done with it, it will be time to think whether to integrate it in sphinx-doc or build a new package if it goes too much beyond sphinx-doc scope. Also, sphinx-doc name suggests that it is only for sphinx docstring while pyment is able to handle more styles.

from sphinx-doc.el.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.