From: Alex Date: Tue, 29 Apr 2025 14:31:41 +0000 (+0200) Subject: Switch from elpy to eglot + basedpyright X-Git-Url: https://xn--ix-yja.es/gitweb/?a=commitdiff_plain;h=5b3fd6b8aeb11d15ed319aed14439724469f88b0;p=alex.git Switch from elpy to eglot + basedpyright --- diff --git a/emacs/emacs.el b/emacs/emacs.el index 59d1815..a09582b 100644 --- a/emacs/emacs.el +++ b/emacs/emacs.el @@ -78,11 +78,12 @@ ;; Untar the archive and symlink the jdtls binary in ~/.local/bin (add-hook 'java-mode-hook 'eglot-ensure) -;; Did not manage to make eglot work :( -(use-package elpy - :ensure t - :init - (elpy-enable)) +;; pipx install basedpyright +(add-hook 'python-mode-hook 'eglot-ensure) + +;; The default setting is higher than strict, and complains (amongst others) about missing type annotations +(setq-default eglot-workspace-configuration + '(:basedpyright (:typeCheckingMode "strict"))) ;; YAML support (use-package yaml-mode :ensure t)