Skip to content

Commit

Permalink
Merge pull request cachix#365 from akirak/elixir-exts
Browse files Browse the repository at this point in the history
Specify files attribute for Elixir programs
  • Loading branch information
domenkozar authored Nov 1, 2023
2 parents bd38df3 + 3db0e34 commit dec1039
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2138,14 +2138,14 @@ in
name = "mix-format";
description = "Runs the built-in Elixir syntax formatter";
entry = "${pkgs.elixir}/bin/mix format";
types = [ "file" ];
files = "\\.exs?$";
};

mix-test = {
name = "mix-test";
description = "Runs the built-in Elixir test framework";
entry = "${pkgs.elixir}/bin/mix test";
types = [ "file" ];
files = "\\.exs?$";
};

credo = {
Expand All @@ -2154,7 +2154,7 @@ in
entry =
let strict = if settings.credo.strict then "--strict" else "";
in "${pkgs.elixir}/bin/mix credo";
types = [ "file" ];
files = "\\.exs?$";
};

vale = {
Expand All @@ -2178,7 +2178,7 @@ in
name = "dialyzer";
description = "Runs a static code analysis using Dialyzer";
entry = "${pkgs.elixir}/bin/mix dialyzer";
types = [ "file" ];
files = "\\.exs?$";
};

crystal = {
Expand Down

0 comments on commit dec1039

Please sign in to comment.