You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to deploy isort to my code repository using the black profile, but when it ran it would merge the comments inside our imports and add them to the same line as the import location which violates the line length significantly.
This is what It looks like initially.
fromos.pathimport (
join,
# this is a really really really really really really really really # really really really really really really long commentgetsize,
)
This is what happens after it runs.
fromos.pathimport ( # this is a really really really really really really really really; really really really really really really long commentgetsize,
join,
)
In this case there doesn't seem to be a good solution for isort: there is no good way to handle this while handling all edge cases. Since this is only something you'll run into once (when first running isort or when adding the comment) we'll close as won't fix.
Activity
DanielNoord commentedon Oct 22, 2026
See #2645
In this case there doesn't seem to be a good solution for
isort: there is no good way to handle this while handling all edge cases. Since this is only something you'll run into once (when first runningisortor when adding the comment) we'll close as won't fix.