mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 02:11:33 +00:00
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:
parent
d2ceb1b610
commit
8ab27a131e
2 changed files with 16 additions and 0 deletions
|
@ -528,6 +528,12 @@
|
||||||
|
|
||||||
- Fixed `typescript` treesitter grammar not being included by default.
|
- 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):
|
[gmvar](https://github.com/gmvar):
|
||||||
|
|
||||||
[harper-ls]: https://github.com/Automattic/harper
|
[harper-ls]: https://github.com/Automattic/harper
|
||||||
|
|
|
@ -149,6 +149,16 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ruff-check = {
|
||||||
|
package = pkgs.writeShellApplication {
|
||||||
|
name = "ruff-check";
|
||||||
|
runtimeInputs = [pkgs.ruff];
|
||||||
|
text = ''
|
||||||
|
ruff check --fix --exit-zero -
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
defaultDebugger = "debugpy";
|
defaultDebugger = "debugpy";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue