languages/python: add formatter that combines ruff format with ruff check --fix (#1072)

* languages/python: add formatting option for `ruff check --fix`

* docs: remove unrelated changes

---------

Co-authored-by: Valter Schütz <valterschutz@proton.me>
Co-authored-by: Ching Pei Yang <59727193+horriblename@users.noreply.github.com>
This commit is contained in:
Valter Schütz 2025-08-30 12:15:38 +02:00 committed by GitHub
commit 8ab27a131e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 0 deletions

View file

@ -528,6 +528,12 @@
- Fixed `typescript` treesitter grammar not being included by default.
[valterschutz](https://github.com/valterschutz):
[ruff]: (https://github.com/astral-sh/ruff)
- Add [ruff-fix] as a formatter option in `vim.languages.python.format.type`.
[gmvar](https://github.com/gmvar):
[harper-ls]: https://github.com/Automattic/harper

View file

@ -149,6 +149,16 @@
'';
};
};
ruff-check = {
package = pkgs.writeShellApplication {
name = "ruff-check";
runtimeInputs = [pkgs.ruff];
text = ''
ruff check --fix --exit-zero -
'';
};
};
};
defaultDebugger = "debugpy";