-
-
Notifications
You must be signed in to change notification settings - Fork 640
Interopability with black #694
Copy link
Copy link
Closed
Labels
blackBlack compatibility issueBlack compatibility issueenhancementNew feature or requestNew feature or requestongoingA task that represents continous work and coordination and is never meant to be "complete"A task that represents continous work and coordination and is never meant to be "complete"
Metadata
Metadata
Assignees
Labels
blackBlack compatibility issueBlack compatibility issueenhancementNew feature or requestNew feature or requestongoingA task that represents continous work and coordination and is never meant to be "complete"A task that represents continous work and coordination and is never meant to be "complete"
Hey, Timothy! Thanks for isort, it's a very useful project.
I made an opinionated formatter, Black. Quite a few of my users are also isort users. That's great, I don't want to have to perform import sorting in Black. However, there's a small issue.
None of isort's multiline modes fits what Black is doing. Black wraps lines like this:
The second step in Black's algorithm is like your mode 5, and the third is like mode 3. I'd like to create a pull request for isort to introduce mode 8 (5+3) that does what Black does in this scenario. This would enable Black and isort to co-exist and keep consistent import styling.
Would you accept such pull request?
(I initially wrote this on Twitter but this belongs here better.)