lexicalunit / atom-isort

Organize python imports using isort
https://atom.io/packages/atom-isort
MIT License
3 stars 3 forks source link

.isort.cfg is ignored #20

Open kskalski opened 6 years ago

kskalski commented 6 years ago

I'm trying to use isort on save functionality, but unfortunately it messes up with the files from the project re-sorting them in a different convention. It seems like it doesn't comply with project level .isort.cfg (which has multi_line_output=4) placed in the same or higher directory, so isort run from the plugin uses different strategy and run from command line uses project-specified strategy.

I'm not sure how is that actually possible, whether plugin runs isort with some setting of environment that messes up config file finding functionality, or it actually forces isort to behave this way...

lexicalunit commented 6 years ago

I can look at this soon, but I'm currently in the middle of moving across the country :)

utkarshgupta137 commented 4 years ago

Any updates? I'm on macOS 10.15 & have ~/.isort.cfg, but it is not getting loaded. Only after I put the config in the same folder as .git, will it load.