Remove flymake-ruff and ruff as python formatter

This commit is contained in:
Evie Litherland-Smith 2024-04-25 13:58:36 +01:00
parent 9e5c94f0fd
commit 3909628e65

22
init.el
View file

@ -953,8 +953,8 @@ Try `magit-clone-default-directory' if available, fall back to
: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 isort)))
(add-to-list 'apheleia-mode-alist '(python-ts-mode . (ruff isort))))
(add-to-list 'apheleia-mode-alist '(python-mode . (black isort)))
(add-to-list 'apheleia-mode-alist '(python-ts-mode . (black isort))))
(use-package flymake
:bind (("C-c C-." . flymake-goto-next-error)
@ -991,10 +991,6 @@ Try `magit-clone-default-directory' if available, fall back to
:after flymake
:hook (js-ts-mode . flymake-eslint-enable))
(use-package flymake-ruff
:after flymake
:hook (python-base-mode . flymake-ruff-load))
(setq project-switch-use-entire-map t
project-switch-commands '((project-find-file "Find file")
(project-find-regexp "Find regexp")
@ -1056,12 +1052,9 @@ Try `magit-clone-default-directory' if available, fall back to
(use-package python
:defer t
:custom
(python-check-command (cond ((executable-find "ruff")
"ruff check --output-format=pylint")
((executable-find "pyflakes")
"pyflakes")
((executable-find "epylint")
"epylint")
(python-check-command (cond ((executable-find "ruff") "ruff check --output-format=pylint")
((executable-find "pyflakes") "pyflakes")
((executable-find "epylint") "epylint")
(t "pyflakes")))
:config
(setq python-ts-mode-hook python-mode-hook)
@ -1129,9 +1122,8 @@ Try `magit-clone-default-directory' if available, fall back to
message-sendmail-extra-arguments '("--read-envelope-from")
message-auto-save-directory nil
message-kill-buffer-on-exit t
mail-user-agent 'mu4e-user-agent)
(set-variable read-mail-command 'mu4e)
mail-user-agent 'mu4e-user-agent
read-mail-command 'mu4e)
(use-package mu4e
:bind