Use ruff and ty for Python development

This commit is contained in:
2025-12-18 06:03:51 +01:00
parent af1a257167
commit d0fa140a9b
2 changed files with 3 additions and 4 deletions

View File

@@ -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)))