From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Niall Dooley Newsgroups: gmane.emacs.bugs Subject: bug#67441: [PATCH] eglot: Add ruff-lsp as an alternative python server Date: Fri, 24 Nov 2023 16:52:36 +0100 Message-ID: <20231124155236.49559-1-dooleyn@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25650"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Niall Dooley To: 67441@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 25 09:18:22 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r6nrq-0006RM-4E for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Nov 2023 09:18:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r6nrV-00043r-2U; Sat, 25 Nov 2023 03:18:01 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r6nrS-00043O-1T for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2023 03:17:58 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r6nrR-0002ri-PS for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2023 03:17:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r6nrW-0007c4-E7 for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2023 03:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Niall Dooley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Nov 2023 08:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67441 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.170090025629202 (code B ref -1); Sat, 25 Nov 2023 08:18:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Nov 2023 08:17:36 +0000 Original-Received: from localhost ([127.0.0.1]:37718 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r6nr2-0007ar-EF for submit@debbugs.gnu.org; Sat, 25 Nov 2023 03:17:36 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:54480) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r6YUm-0008Ra-L5 for submit@debbugs.gnu.org; Fri, 24 Nov 2023 10:53:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r6YUc-0001Qx-GN for bug-gnu-emacs@gnu.org; Fri, 24 Nov 2023 10:53:22 -0500 Original-Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r6YUa-0003UJ-Pi for bug-gnu-emacs@gnu.org; Fri, 24 Nov 2023 10:53:22 -0500 Original-Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-a02d91ab199so290180266b.0 for ; Fri, 24 Nov 2023 07:53:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700841199; x=1701445999; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=H37LvPvQAJurEh+PUMiurAcVpTQ1krKCY6drcCH5BMA=; b=GAyaDAlkvH5HDVUMceh61FVh3XPpqZ14dsHYQ39rB1LSCQ/zGqV0fnlYgsPNjhYn9+ PbSCCiyrujOT0a/f8mUbboGKVuVk8v7v5Qo9g1ThM1oFJu/JIMy2y1kpCxc0OifZvkLh Mf++4+BkvNE8AU5qbXqj7TLFXGjzwtsIXTuahebt8NWa+mMMJZlcBeCpRlAveDi4I7RS IlHnx4qZLZOwqw5VdnuWvNQdY+OEmeITC3L2iV3GAUL9+6ADHrAF5Rkfi9qsAFP248Zt GdtIcYjfqtYlXfXkkY3NNXdi1wEXgUfL0pgY1tymKG1edYLz5kwNy2rqu6vRpHuleZwn BD0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700841199; x=1701445999; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=H37LvPvQAJurEh+PUMiurAcVpTQ1krKCY6drcCH5BMA=; b=dIU7WdPWNidBJOolwu2Zgq4ARzwCPCH0bv9bHIOm+b5wVr6GudD2wtFck33F8dD/1i DKjC7JZmeYlT+Df8RTk0LPkLwDZlmjP1JbnXo9QX2msJQ0nieL9ci276u7/42x+yQ+4y r5ok3lfvVl8BVUcT4YnK0NQKTYIlrkuA7XJ7UsaBKF+eyoblwWqO7mv+oPxMgx5AnDO9 ztnAiQLHKUyU04jvbIEC14i51bmyGlsrNQmis0Tga5fD4IwUok0nDl7E+kAGv9yo5igr jBGP7pBYzIYDHe5d+0Dzie5lstDUzVfY1k8CB4bpZxSXz0kJJtmxeygz5Ffc9euWYDmK MBsg== X-Gm-Message-State: AOJu0Yxps3tHsVdqZOAXnd1XrsMsc037v+6HZCs+0+mKxgRNN1XTPsxR znpAsEURgGyp1JvNk+DV8WHX1boI2F+MFQ== X-Google-Smtp-Source: AGHT+IE2AuQo9QtmJ5i1e9irb9SAb05Ds+dlrnPCBBw3vyEC/STUQhdn6XlI6nvjxTsMYk4nNkZVqQ== X-Received: by 2002:a17:906:150c:b0:9cc:450c:b0d5 with SMTP id b12-20020a170906150c00b009cc450cb0d5mr2584627ejd.4.1700841198899; Fri, 24 Nov 2023 07:53:18 -0800 (PST) Original-Received: from jupiter.homenet.telecomitalia.it (host-82-59-128-138.retail.telecomitalia.it. [82.59.128.138]) by smtp.gmail.com with ESMTPSA id j25-20020a1709064b5900b009ff9431930asm2178334ejv.159.2023.11.24.07.53.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 07:53:18 -0800 (PST) X-Mailer: git-send-email 2.30.2 Received-SPF: pass client-ip=2a00:1450:4864:20::636; envelope-from=dooleyn@gmail.com; helo=mail-ej1-x636.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 25 Nov 2023 03:17:32 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:274921 Archived-At: 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 @@ chosen (interactively or automatically)." (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