emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/eglot 7ab2bc4a18: Support yapf3 in python-yapf-formatti


From: ELPA Syncer
Subject: [elpa] externals/eglot 7ab2bc4a18: Support yapf3 in python-yapf-formatting tests
Date: Fri, 14 Jan 2022 09:57:29 -0500 (EST)

branch: externals/eglot
commit 7ab2bc4a18022918f95fa979c4b9e0a6e7092718
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>

    Support yapf3 in python-yapf-formatting tests
    
    * eglot-tests.el (python-yapf-formatting): Look for a yapf3 executable
    as well as the yapf one.
---
 eglot-tests.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/eglot-tests.el b/eglot-tests.el
index d277464496..f49d912b98 100644
--- a/eglot-tests.el
+++ b/eglot-tests.el
@@ -678,7 +678,8 @@ pyls prefers autopep over yafp, despite its README stating 
the contrary."
   "Test formatting in the pyls python LSP."
   (skip-unless (and (executable-find "pyls")
                     (not (executable-find "autopep8"))
-                    (executable-find "yapf")))
+                    (or (executable-find "yapf")
+                        (executable-find "yapf3"))))
   (eglot--with-fixture
       `(("project" . (("something.py" . "def a():pass\ndef b():pass"))))
     (with-current-buffer



reply via email to

[Prev in Thread] Current Thread [Next in Thread]