nit(python): fix indentation in config

This commit is contained in:
Damian Barabonkov 2025-12-02 22:42:16 +01:00
parent beed37ad83
commit feb0a488c6

View file

@ -22,7 +22,7 @@
(when (modulep! +tree-sitter)
(set-tree-sitter! 'python-mode 'python-ts-mode
`((python :url "https://github.com/tree-sitter/tree-sitter-python"
:rev ,(if (< (treesit-library-abi-version) 15) "v0.23.6" "v0.25.0")))))
:rev ,(if (< (treesit-library-abi-version) 15) "v0.23.6" "v0.25.0")))))
:config
;; HACK: `python-base-mode' (and `python-ts-mode') don't exist on pre-29
@ -44,22 +44,22 @@
"Python 3" "NumPy" "SciPy" "Pandas")
(set-ligatures! '(python-mode python-ts-mode)
;; Functional
:def "def"
:lambda "lambda"
;; Types
:null "None"
:true "True" :false "False"
:int "int" :str "str"
:float "float"
:bool "bool"
:tuple "tuple"
;; Flow
:not "not"
:in "in" :not-in "not in"
:and "and" :or "or"
:for "for"
:return "return" :yield "yield")
;; Functional
:def "def"
:lambda "lambda"
;; Types
:null "None"
:true "True" :false "False"
:int "int" :str "str"
:float "float"
:bool "bool"
:tuple "tuple"
;; Flow
:not "not"
:in "in" :not-in "not in"
:and "and" :or "or"
:for "for"
:return "return" :yield "yield")
;; Stop the spam!
(setq python-indent-guess-indent-offset-verbose nil)
@ -89,7 +89,7 @@
(setq-local flycheck-python-pylint-executable "pylint")
(setq-local flycheck-python-flake8-executable "flake8"))))
;; Affects pyenv and conda
;; Affects pyenv, uv and conda
(when (modulep! :ui modeline)
(advice-add #'pythonic-activate :after-while #'+modeline-update-env-in-all-windows-h)
(advice-add #'pythonic-deactivate :after #'+modeline-clear-env-in-all-windows-h))