Closed jzelinskie closed 4 years ago
There's a a extension for isort. See 3rd party plugins in README.
I could be mistaken, but it appears that either the isort plugin does not work (I've tried a branch both the pypi version and the git rev PRed for adding isort 5+ compatibility). If it did work, would pyls format with both? How would it know which to execute first?
Hi. I just tried it out. The extension seems to work only with isort==4.0.X. Nothing happens with isort==5.0.9. Then, it uses both formatters.
EDIT: latest working I found was 4.3.21
pyls-isort appears to be updated and working. My bad for the confusion.
My end goal is to have
isort
andblack
both executing when "format document" is called. I think the best way to accomplish this is to specify an ordered list of formatters. If I was to implement this like a regular formatting plugin, would I have any issues? I assume there'd be a problem because@hookimpl
would be executed when you import an existing formatter into the meta-formatter.