Skip to content

Commit

Permalink
feat: add ruff-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Jahn16 committed Aug 5, 2024
1 parent f451c19 commit 509f505
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3185,6 +3185,14 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.ormol
entry = "${hooks.ruff.package}/bin/ruff check --fix";
types = [ "python" ];
};
ruff-format =
{
name = "ruff";
description = "An extremely fast Python code formatter, written in Rust.";
package = tools.ruff;
entry = "${hooks.ruff.package}/bin/ruff format";
types = [ "python" ];
};
rustfmt =
let
inherit (hooks.rustfmt) packageOverrides;
Expand Down

0 comments on commit 509f505

Please sign in to comment.