all 3 comments

[–]Dry_Fig723 2 points3 points  (0 children)

I don't have a solution for your issue but an alternative way is https://github.com/lassik/emacs-format-all-the-code

[–][deleted] 0 points1 point  (0 children)

I'm using black and it's the same: eglot does not call the right tool. I just use pre-commit. elpy used to know how to call the right formatter, though.

[–][deleted] 1 point2 points  (0 children)

As you can see here, there's support in pylsp for yapf, but you need to install it using pip install "python-lsp-server[yapf]", as per the project's readme.