Skip to content

Commit

Permalink
Enable shellcheck pre-commit hook
Browse files Browse the repository at this point in the history
This enables the shellcheck pre-commit check of pre-commit-hooks.nix
The hook will be enabled on the first invocation of `shellHook` which
occurs either when entering a `nix-shell` or via `.envrc` in case
your integration is configured to evaluate shell hooks.
  • Loading branch information
gilligan committed Oct 29, 2020
1 parent 61e5a82 commit 92aaeb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shell.nix
Expand Up @@ -12,10 +12,12 @@ let
tools = {
stylish-haskell = dev.packages.stylish-haskell;
nixpkgs-fmt = pkgs.nixpkgs-fmt;
shellcheck = pkgs.shellcheck;
};
hooks = {
stylish-haskell.enable = true;
nixpkgs-fmt.enable = true;
shellcheck.enable = true;
};
};
in
Expand Down

0 comments on commit 92aaeb7

Please sign in to comment.