grantjenks / blue

The slightly less uncompromising Python code formatter.
https://blue.readthedocs.io/
Other
393 stars 21 forks source link

Docstrings can be a single line #8

Closed warsaw closed 3 years ago

warsaw commented 3 years ago

Closes #3

It seems like black uses is_docstring() both for re-indentation and re-quoting strings, but for our use case, we only care about re-quoting. And docstrings can be a single line, so they should get re-quoted.

warsaw commented 3 years ago

Also closes #8

warsaw commented 3 years ago

I'm going to go ahead and merge this. We can always revert, but it WFM!