diff --git a/modules/hooks.nix b/modules/hooks.nix index 9ea69da3..a088ca1d 100644 --- a/modules/hooks.nix +++ b/modules/hooks.nix @@ -2129,14 +2129,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 = { @@ -2145,7 +2145,7 @@ in entry = let strict = if settings.credo.strict then "--strict" else ""; in "${pkgs.elixir}/bin/mix credo"; - types = [ "file" ]; + files = "\\.exs?$"; }; vale = { @@ -2169,7 +2169,7 @@ in name = "dialyzer"; description = "Runs a static code analysis using Dialyzer"; entry = "${pkgs.elixir}/bin/mix dialyzer"; - types = [ "file" ]; + files = "\\.exs?$"; }; crystal = {