- → Binden Sie an m-x Ruff-Check
Code: Select all
ruff check --select ALL current_buffer
- → Binden Sie an m-x ruff-fix
Code: Select all
ruff check --select ALL --fix current_buffer
Code: Select all
(add-hook 'python-mode-hook 'eglot-ensure)
(with-eval-after-load 'eglot
(add-to-list 'eglot-server-programs
'(python-mode . ("ruff" "server")))
(add-hook 'after-save-hook 'eglot-format))
(require 'ruff-format)
(add-hook 'python-mode-hook 'ruff-format-on-save-mode)