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
check_skip is always set to False [1] which make SortImports not even trying any of the skip options [2] while the class use True as default for that argument [3]
Options defined in a settings-path file are not used [4] by iter_source_code() [5], the config dict will only contain options a local .isort.cfg and CLI options.
Hi,
Version used: 4.3.15, not tested on other versions.
Setup:
Files are not skipped when using
--settings-path=conf/.isort.cfg
:But works when using CLI options:
The problem seems to have two causes:
check_skip
is always set toFalse
[1] which makeSortImports
not even trying any of the skip options [2] while the class useTrue
as default for that argument [3]iter_source_code()
[5], theconfig
dict will only contain options a local.isort.cfg
and CLI options.[1] https://github.com/timothycrosley/isort/blob/4.3.15/isort/main.py#L320
[2] https://github.com/timothycrosley/isort/blob/4.3.15/isort/isort.py#L98
[3] https://github.com/timothycrosley/isort/blob/4.3.15/isort/isort.py#L51
[4] https://github.com/timothycrosley/isort/blob/4.3.15/isort/main.py#L348-L349
[5] https://github.com/timothycrosley/isort/blob/4.3.15/isort/main.py#L353
A bisect give me 91ae94e as first bad commit.
The text was updated successfully, but these errors were encountered: