From d0fa140a9b7569cca227d683e703b506d3c62c48 Mon Sep 17 00:00:00 2001 From: coolneng Date: Thu, 18 Dec 2025 06:03:51 +0100 Subject: [PATCH] Use ruff and ty for Python development --- config.el | 6 +++--- init.el | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/config.el b/config.el index edc49b6..661dc45 100644 --- a/config.el +++ b/config.el @@ -94,9 +94,6 @@ :after cc-mode :config (add-hook! 'c++-mode-hook (platformio-conditionally-enable))) -;; Disable Pyright's type checking -(after! lsp-pyright - (setq lsp-pyright-use-library-code-for-types nil)) ;; Set indentation level to 2 (setq tab-width 2) ;; Move buffer while maintaining cursor centered @@ -107,3 +104,6 @@ (pixel-scroll-precision-mode) ;; Restore previous session on startup (add-hook 'window-setup-hook #'doom/quickload-session) +;; Set ruff as the default python formatter +(after! python + (set-formatter! 'ruff :modes '(python-mode python-ts-mode))) diff --git a/init.el b/init.el index 226783d..2a1de10 100644 --- a/init.el +++ b/init.el @@ -164,7 +164,6 @@ ;;plantuml ; diagrams for confusing people more ;;purescript ; javascript, but functional (python +lsp ; beautiful is better than ugly - +pyright +poetry +tree-sitter) ;;qt ; the 'cutest' gui framework ever