GNU bug report logs - #67442
[PATCH] eglot: Add ruff-lsp as an alternative python server

Previous Next

Package: emacs;

Reported by: Niall Dooley <dooleyn <at> gmail.com>

Date: Sat, 25 Nov 2023 08:18:03 UTC

Severity: normal

Tags: patch

Merged with 67441

Fixed in version 29.2

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Niall Dooley <dooleyn <at> gmail.com>
To: 67442 <at> debbugs.gnu.org
Subject: bug#67442: [PATCH] eglot: Add ruff-lsp as an alternative python server
Date: Fri, 24 Nov 2023 23:42:28 +0100
[Message part 1 (text/plain, inline)]
ruff-lsp [1] is a Language Server Protocol implementation for Ruff [2,
3], an extremely fast Python linter and code formatter, written in
Rust.

It supports surfacing Ruff diagnostics and providing Code Actions to
fix them, but is intended to be used alongside another Python LSP in
order to support features like navigation and autocompletion.

[1]: https://github.com/astral-sh/ruff-lsp
[2]: https://github.com/astral-sh/ruff
[3]: https://docs.astral.sh/ruff/
---
 lisp/progmodes/eglot.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index 48ea33c3ee1..d7d91bddb01 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -216,7 +216,7 @@ eglot-server-programs
                                 (vimrc-mode . ("vim-language-server"
"--stdio"))
                                 ((python-mode python-ts-mode)
                                  . ,(eglot-alternatives
-                                     '("pylsp" "pyls"
("pyright-langserver" "--stdio") "jedi-language-server")))
+                                     '("pylsp" "pyls"
("pyright-langserver" "--stdio") "jedi-language-server" "ruff-lsp")))
                                 ((js-json-mode json-mode json-ts-mode)
                                  . ,(eglot-alternatives
'(("vscode-json-language-server" "--stdio")

("vscode-json-languageserver" "--stdio")
-- 
2.30.2
[0001-eglot-Add-ruff-lsp-as-an-alternative-python-server.patch (text/x-patch, attachment)]

This bug report was last modified 1 year and 218 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.