From 6244124d145b561289f9a52fed62d8ba683b68a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Tue, 17 Dec 2024 11:19:02 -0800 Subject: [PATCH] README: added Emacs import re-organization with Ruff --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index f63d85167..b4c67cfdf 100644 --- a/README.md +++ b/README.md @@ -197,9 +197,7 @@ You can use [use-package](https://github.com/jwiegley/use-package) to install [e :hook ((python-mode . lazy-ruff-mode)) :config (setq lazy-ruff-format-command "ruff format") - (setq lazy-ruff-only-format-block t) - (setq lazy-ruff-only-format-region t) - (setq lazy-ruff-only-format-buffer t)) + (setq lazy-ruff-check-command "ruff check --select I")) ``` `ruff` was installed in the `venv` environment described before, so you should be able to use [pyvenv-auto](https://github.com/ryotaro612/pyvenv-auto) to automatically load that environment inside Emacs. @@ -209,7 +207,6 @@ You can use [use-package](https://github.com/jwiegley/use-package) to install [e :ensure t :defer t :hook ((python-mode . pyvenv-auto-run))) - ``` ### Visual Studio Code