languages/python: add formatter that combines ruff format with ruff check --fix

This commit is contained in:
Valter Schütz 2025-08-10 13:48:37 +02:00
commit 3d57e036f7
2 changed files with 16 additions and 0 deletions

View file

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