]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
dir-locals: set python-indent-def-block-scale to 1 3059/head
authorJörg Behrmann <behrmann@physik.fu-berlin.de>
Sat, 21 Sep 2024 10:58:41 +0000 (12:58 +0200)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Sat, 21 Sep 2024 10:58:41 +0000 (12:58 +0200)
This makes the default Emacs indentation compatible with the ruff style so that
no extra indentation is added for function arguments.

.dir-locals.el

index 6223f7c60df63658c2e96c92862a0cbec2cbe48a..e486726f868fc4d815e540b4d742bac1af5ae223 100644 (file)
@@ -9,10 +9,12 @@
 
 ((python-mode . ((indent-tabs-mode . nil)
                  (tab-width . 4)
-                 (fill-column . 109)))
+                 (fill-column . 109)
+                 (python-indent-def-block-scale . 1)))
  (python-ts-mode . ((indent-tabs-mode . nil)
                     (tab-width . 4)
-                    (fill-column . 109)))
+                    (fill-column . 109)
+                    (python-indent-def-block-scale . 1)))
  (sh-mode . ((sh-basic-offset . 4)
              (sh-indentation . 4)))
  (markdown-mode . ((fill-column . 109)))