Use ruff and ty for Python development
This commit is contained in:
@@ -94,9 +94,6 @@
|
|||||||
:after cc-mode
|
:after cc-mode
|
||||||
:config
|
:config
|
||||||
(add-hook! 'c++-mode-hook (platformio-conditionally-enable)))
|
(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
|
;; Set indentation level to 2
|
||||||
(setq tab-width 2)
|
(setq tab-width 2)
|
||||||
;; Move buffer while maintaining cursor centered
|
;; Move buffer while maintaining cursor centered
|
||||||
@@ -107,3 +104,6 @@
|
|||||||
(pixel-scroll-precision-mode)
|
(pixel-scroll-precision-mode)
|
||||||
;; Restore previous session on startup
|
;; Restore previous session on startup
|
||||||
(add-hook 'window-setup-hook #'doom/quickload-session)
|
(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)))
|
||||||
|
|||||||
1
init.el
1
init.el
@@ -164,7 +164,6 @@
|
|||||||
;;plantuml ; diagrams for confusing people more
|
;;plantuml ; diagrams for confusing people more
|
||||||
;;purescript ; javascript, but functional
|
;;purescript ; javascript, but functional
|
||||||
(python +lsp ; beautiful is better than ugly
|
(python +lsp ; beautiful is better than ugly
|
||||||
+pyright
|
|
||||||
+poetry
|
+poetry
|
||||||
+tree-sitter)
|
+tree-sitter)
|
||||||
;;qt ; the 'cutest' gui framework ever
|
;;qt ; the 'cutest' gui framework ever
|
||||||
|
|||||||
Reference in New Issue
Block a user