plugin-python icon indicating copy to clipboard operation
plugin-python copied to clipboard

Render docstrings with double quotes

Open patrick91 opened this issue 7 years ago • 5 comments

I've been trying running prettier on the django codebase and I noticed that they use single quotes for almost all the strings and double quotes for the docstrings, which seems to be a common things in python (I haven't seen many single quotes docstrings).

patrick91 avatar Mar 03 '18 16:03 patrick91

PEP 257 requires double quotes for docstrings. It also requires a blank line after the docstring for classes, but not for functions.

taion avatar Mar 03 '18 20:03 taion

Hey guys! I've read in the README that the plugin is deprecated, so I'd like to know if you're still interested in solving this issue. Case yes, I'd like to claim it :smile:

rafaelcascalho avatar Aug 21 '19 17:08 rafaelcascalho

@rcsm are you using this plugin? if so I'd be happy to review an merge fixes :)

patrick91 avatar Aug 21 '19 17:08 patrick91

Yep! I've started using prettier very recently and used this plugin for a little python app of mine. Right now I'm looking for an OSS to contribute, and that's why I'd like to solve this issue :)

rafaelcascalho avatar Aug 21 '19 17:08 rafaelcascalho

@rcsm cool! I use black for formatting python, but could be nice to get prettier python stable anyway

patrick91 avatar Aug 21 '19 18:08 patrick91