Skip to content

Commit

Permalink
fix: pre-commit treefmt in a lot of places it wasn't working
Browse files Browse the repository at this point in the history
  • Loading branch information
huuff committed Oct 27, 2024
1 parent 9f4c7be commit b48b97e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions leptos/pre-commit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
treefmt = {
enable = true;
package = treefmt;
# only way I got it to run
pass_filenames = false;
};

Expand Down
4 changes: 3 additions & 1 deletion nix/pre-commit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@

treefmt = {
enable = true;
packageOverrides.treefmt = treefmt;
package = treefmt;
# only way I got it to run
pass_filenames = false;
};

statix.enable = true;
Expand Down
4 changes: 3 additions & 1 deletion rust/pre-commit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@

treefmt = {
enable = true;
packageOverrides.treefmt = treefmt;
package = treefmt;
# only way I found of making it run
pass_filenames = false;
};

statix.enable = true;
Expand Down

0 comments on commit b48b97e

Please sign in to comment.