python: use isort as formatter alongside ruff

This commit is contained in:
Evie Litherland-Smith 2024-04-02 17:47:40 +01:00
parent 3c8dc5df40
commit b194db5ec8

View file

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