Add ruff-isort to apheleia formatter steps for python

This commit is contained in:
Evie Litherland-Smith 2024-03-27 05:51:16 +00:00
parent eb2e89cb48
commit c7f279759c

View file

@ -115,8 +115,8 @@ Set treesit to fontify all elements, default was 3 (out of 4)
:config :config
(add-to-list 'apheleia-formatters '(alejandra . ("alejandra"))) (add-to-list 'apheleia-formatters '(alejandra . ("alejandra")))
(add-to-list 'apheleia-mode-alist '(nix-mode . alejandra)) (add-to-list 'apheleia-mode-alist '(nix-mode . alejandra))
(add-to-list 'apheleia-mode-alist '(python-mode . ruff)) (add-to-list 'apheleia-mode-alist '(python-mode . (ruff ruff-isort)))
(add-to-list 'apheleia-mode-alist '(python-ts-mode . ruff))) (add-to-list 'apheleia-mode-alist '(python-ts-mode . (ruff ruff-isort))))
#+end_src #+end_src
* Flymake * Flymake
#+begin_src emacs-lisp :tangle yes #+begin_src emacs-lisp :tangle yes