-
-
Notifications
You must be signed in to change notification settings - Fork 621
Closed
Labels
blackBlack compatibility issueBlack compatibility issueenhancementNew feature or requestNew feature or request
Description
Black auto-explodes imports, collections, function calls, etc. when they contain a trailing comma:
https://github.com/psf/black/blob/master/docs/the_black_code_style.md#the-magic-trailing-comma
This means that even though this would fit into one line:
from seven_dwwarfs import (
Grumpy,
Happy,
Sleepy,
Bashful,
Sneezy,
Dopey,
Doc,
)Black will NOT convert it into this:
from seven_dwwarfs import Grumpy, Happy, Sleepy, Bashful, Sneezy, Dopey, Doc
As long as the import list contains a trailing comma.
isort currently does not have the magic trailing comma handling as far as I can tell and will collapse the import list if it can fit within the line length limit.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
blackBlack compatibility issueBlack compatibility issueenhancementNew feature or requestNew feature or request