-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 should format docstring line length #2865
Comments
docformatter already exists. IMO would be great if Black didn't alter AST any more than it already does. |
Not saying this should be solved by Black, but docformatter will only help so much. Their line wrapper only applies to simple docstrings, so if you're using Google style docstrings, you're out of luck. |
@felix-hilden they have an open issue already. I just mentioned that here in case there are other lost souls out there expecting to find some auto formatting tool for their non-standard docstrings. The current state of affairs is: Black won't (and maybe shouldn't) help you with this. And docformatter should, but won't help you at this time. |
Related to #2289 |
+1 |
I am going to say that reflowing docstrings is out of scope for Black. It's likely to break some use cases (e.g., embedded code in docstrings), it may produce ugly output (just one word on the next line), and if we reflow too aggressively it can make diffs harder to read. |
Describe the style change
Black should format docstring line length.
Examples in the current Black style
Desired style
The text was updated successfully, but these errors were encountered: