-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Black and docformatter don't agree on multiline string which starts with a "
#2912
Comments
We added the spacing on purpose to make the code clearer. Could docformatter change instead? |
Perhaps, but I'd trust a tool dedicated to formatting docstrings's style over a tool for general Python code. Really the pain just comes from constant reformatting because of the conflict. I did verify (on Python 3.8 at least) that the |
Looks like there's a standing issue: PyCQA/docformatter#39 |
I also think I like the |
IMO if there's a space on the left side there should be one on the right side too, otherwise it looks inconsistent. But not having a space at all also looks weird. |
I've been cleaning up the docformatter open issues and PRs. I just opened #94 to add an argument (e.g., |
I agree that separating the quotes looks nicer. Since it's being fixed on their side, are we good to close this issue? |
Describe the style change
Given the following docstring,
black
shouldn't insert a leading space.""""Cookie eaters" are the set of people that eat cookies."""
Examples in the current Black style
""" "Cookie eaters" are the set of people that eat cookies."""
Desired style
""""Cookie eaters" are the set of people that eat cookies."""
(Which is how
docformatter
leaves it)Additional context
The text was updated successfully, but these errors were encountered: