Skip to content

Commit

Permalink
Support yapf3 in python-yapf-formatting tests
Browse files Browse the repository at this point in the history
* eglot-tests.el (python-yapf-formatting): Look for a yapf3 executable
as well as the yapf one.
  • Loading branch information
skangas committed Jan 14, 2022
1 parent 2fff45a commit 7ab2bc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eglot-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ab2bc4

Please sign in to comment.