eglot: pylsp enable extra error codes for ruff

This commit is contained in:
Evie Litherland-Smith 2024-01-25 11:24:09 +00:00
parent c186f7d3ad
commit 9e517b90a8

View file

@ -795,7 +795,13 @@ Set treesit to fontify all elements, default was 3 (out of 4)
( :check (:command "clippy") ( :check (:command "clippy")
:procMacro (:enable t) :procMacro (:enable t)
:cargo ( :buildScripts (:enable t) :cargo ( :buildScripts (:enable t)
:features "all")))))) :features "all")))))
(add-to-list 'eglot-server-programs
`((python-ts-mode python-mode)
. ("pylsp"
:initializationOptions
( :pylsp ( :plugins ( :ruff ( :enabled t
:extendSelect ["I" "W" "C901"]))))))))
#+end_src #+end_src
** Apheleia formatting ** Apheleia formatting