paradoxxxzero / pyls-isort

Isort plugin for python-language-server
MIT License
61 stars 9 forks source link

Does not detect global .isort.cfg #2

Open GohioAC opened 5 years ago

GohioAC commented 5 years ago

I use python-language-server through LanguageClient-neovim. When I try to format my python documents using this setup, it does not respect the isort settings in ~/.isort.cfg.

Ecno92 commented 5 years ago

I also found out that even with no explicit settings being defined in .isort.cfg/setup.cfg the sorting yields different results than using isort/pytest-isort directly.

sblask commented 2 years ago

Not sure about @Ecno92 's problem, but I too have the problem that my global ~/.isort.cfg is not being respected. Had a look at the source code of pyls-isort and it looks like everything is done the right way and that the problem lies in isort's config file discovery. I opened an issue: https://github.com/PyCQA/isort/issues/1848