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