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
The text was updated successfully, but these errors were encountered:
TheVayt
changed the title
isort.core.process returns False if only changes to lines before imports were made, with no changes to raw import section
isort.core.process incorrectly returns False if only changes to lines before imports were made, with no changes to raw import section
Mar 4, 2024
I found a bug where
isort.core.process
returnsFalse
when only changes to lines before imports were made, with no changes to raw import section.isort.core.process
:The bug results in isort not fixing files that require fixing only lines before imports.
For example
isort file.py --lines-before-imports=10
does nothing for this file:But this one will have 10 lines added before imports, just because imports are unsorted and
isort.core.process
returnedTrue
:Example tests, 2 of which fail:
The text was updated successfully, but these errors were encountered: