Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isort looks throw off by comments #1264

Closed
frenck opened this issue Jul 5, 2020 · 2 comments
Closed

isort looks throw off by comments #1264

frenck opened this issue Jul 5, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@frenck
Copy link

frenck commented Jul 5, 2020

I've tried to upgrade the Home Assistant project today to isort 5.0.3, unfortunately, that seems to be not happening.

I've used the following config in setup.cfg:

[isort]
profile=black
indent = "    "
force_sort_within_sections = true
sections = FUTURE,STDLIB,INBETWEENS,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
default_section = THIRDPARTY
known_first_party = homeassistant,tests
forced_separate = tests
combine_as_imports = true

After I run isort everything seems fine. However, when I run it again, it modifies some files again, and again, and again...

After a couple of runs, I end up with files like this:

image

@timothycrosley timothycrosley added the bug Something isn't working label Jul 6, 2020
@timothycrosley
Copy link
Member

Thanks for reporting! This is fixed in the isort 5.0.4 patch release, with a regression test added to ensure it doesn't happen again

@frenck
Copy link
Author

frenck commented Jul 6, 2020

Thanks for the quick response on this @timothycrosley, that is appreciated 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants