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
frommany_stop_wordsimportget_stop_wordsasget_base_stopwords# extended list of stop words, also for en
After second step, black formatting, I got
frommany_stop_wordsimport (
get_stop_wordsasget_base_stopwords,
) # extended list of stop words, also for en
After last step, the check fails:
ERROR: totest.py Imports are incorrectly sorted.
It looks like isort ignores comments when wrapping long lines. The line without comment has 64 chars but with comment it has 108 chars, exceeding requested 105 chars.
I would expected from isort -m 3 -tc -w 105 totest.py to give the following output:
frommany_stop_wordsimport (
get_stop_wordsasget_base_stopwords,
) # extended list of stop words, also for en
How can I make isort to do that?
The text was updated successfully, but these errors were encountered:
Version 4.3.21:
I have the following problematic file
totest.py
:I run isort, black and then check results with isort to see if imports order have been preserved. The last step simulates what happens on Jenkins:
After first step I got
After second step, black formatting, I got
After last step, the check fails:
It looks like isort ignores comments when wrapping long lines. The line without comment has 64 chars but with comment it has 108 chars, exceeding requested 105 chars.
I would expected from
isort -m 3 -tc -w 105 totest.py
to give the following output:How can I make isort to do that?
The text was updated successfully, but these errors were encountered: