reddit / emacs

Integrating ruff-lsp with emacs (python)

carlml · 2022-12-27 04:27
I found ruff [https://github.com/charliermarsh/ruff#editor-integrations](https://github.com/charliermarsh/ruff#editor-integrations) They mention ruff-lsp can be integrated with emacs, however I have no idea how to do that. They provide examples for other editors, but not emacs. I'd appreciate if someone could help me do this. I suppose this should be easy for someone who knows. Currently, I have flymake, which according to my understanding uses flake8. I am not super happy about it.
yyoncho · 2022-12-27 07:15
https://github.com/emacs-lsp/lsp-mode/issues/3876#issuecomment-1364688384
green_transistor · 2022-12-27 08:27
Since ruff is a linter, I wonder if it makes sense to integrate it with flycheck/flymake rather than with lsp-mode.
yyoncho · 2022-12-27 09:50
It implements LSP protocol.
dpassen1 · 2022-12-27 21:19
https://github.com/flycheck/flycheck/issues/1974