Removing unnecessary ruff arguments from README

This commit is contained in:
marcus-daily
2024-10-31 16:15:59 +00:00
committed by Marcus
parent 5f7a2f66d4
commit 9ee8896b64

View File

@@ -178,7 +178,7 @@ You can use [use-package](https://github.com/jwiegley/use-package) to install [e
:ensure t :ensure t
:hook ((python-mode . lazy-ruff-mode)) :hook ((python-mode . lazy-ruff-mode))
:config :config
(setq lazy-ruff-format-command "ruff format --config line-length=100") (setq lazy-ruff-format-command "ruff format")
(setq lazy-ruff-only-format-block t) (setq lazy-ruff-only-format-block t)
(setq lazy-ruff-only-format-region t) (setq lazy-ruff-only-format-region t)
(setq lazy-ruff-only-format-buffer t)) (setq lazy-ruff-only-format-buffer t))
@@ -197,14 +197,13 @@ You can use [use-package](https://github.com/jwiegley/use-package) to install [e
### Visual Studio Code ### Visual Studio Code
Install the Install the
[Ruff](https://marketplace.visualstudio.com/items?itemName=charliermarsh.ruff) extension. Then edit the user settings (_Ctrl-Shift-P_ `Open User Settings (JSON)`) and set it as the default Python formatter, enable formatting on save and configure `ruff` arguments: [Ruff](https://marketplace.visualstudio.com/items?itemName=charliermarsh.ruff) extension. Then edit the user settings (_Ctrl-Shift-P_ `Open User Settings (JSON)`) and set it as the default Python formatter, and enable formatting on save:
```json ```json
"[python]": { "[python]": {
"editor.defaultFormatter": "charliermarsh.ruff", "editor.defaultFormatter": "charliermarsh.ruff",
"editor.formatOnSave": true "editor.formatOnSave": true
}, }
"ruff.format.args": ["--config", "line-length=100"]
``` ```
## Getting help ## Getting help