Skip to content

Commit

Permalink
missed some hooks there
Browse files Browse the repository at this point in the history
  • Loading branch information
iand675 committed May 29, 2024
1 parent 39a1c7e commit 349adcb
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,29 @@
(import ./nix/matrix.nix)
supportedSystems
;
ignoreGeneratedFiles = attrs: {
excludes =
attrs.excludes
or []
++ [
"^otlp/src/"
];
};
ignoreGeneratedFiles = attrs:
{
excludes =
attrs.excludes
or []
++ [
"^otlp/src/"
];
}
// attrs;
pre-commit-hooks = {
alejandra.enable = true;
fourmolu = ignoreGeneratedFiles {
# General hooks
end-of-file-fixer = ignoreGeneratedFiles {
enable = true;
};
# Nix hooks
alejandra.enable = true;
deadnix.enable = true;
end-of-file-fixer = ignoreGeneratedFiles {
# Haskell hooks
fourmolu = ignoreGeneratedFiles {
enable = true;
};
hpack.enable = true;
};
in
{
Expand Down

0 comments on commit 349adcb

Please sign in to comment.