Skip to content

Commit

Permalink
Add purs-tidy checks
Browse files Browse the repository at this point in the history
  • Loading branch information
tfc committed Nov 2, 2022
1 parent a7cbf54 commit 18791b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,13 @@ in
entry = "${tools.purty}/bin/purty";
files = "\\.purs$";
};
purs-tidy =
{
name = "purs-tidy";
description = "Format purescript files";
entry = "${tools.purs-tidy}/bin/purs-tidy format-in-place";
files = "\\.purs$";
};
prettier =
{
name = "prettier";
Expand Down
2 changes: 1 addition & 1 deletion nix/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
# TODO: these two should be statically compiled
inherit (haskellPackages) brittany fourmolu;
inherit (luaPackages) luacheck;
inherit (nodePackages) eslint markdownlint-cli prettier;
inherit (nodePackages) eslint markdownlint-cli prettier purs-tidy;
inherit (python39Packages) ansible-lint yamllint;
cabal2nix-dir = callPackage ./cabal2nix-dir { };
hpack-dir = callPackage ./hpack-dir { };
Expand Down

0 comments on commit 18791b3

Please sign in to comment.