feat(flake): add shellcheck to pre-commit-check

This commit is contained in:
Felix Schröter 2022-05-12 11:31:18 +02:00
parent ab0bc5268b
commit 86e655057e
Signed by: felschr
GPG key ID: 671E39E6744C807D
3 changed files with 6 additions and 1 deletions

View file

@ -176,7 +176,10 @@
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
pre-commit-check = pre-commit-hooks.lib.${system}.run { pre-commit-check = pre-commit-hooks.lib.${system}.run {
src = ./.; src = ./.;
hooks = { nixfmt.enable = true; }; hooks = {
nixfmt.enable = true;
shellcheck.enable = true;
};
}; };
in { in {
formatter = nixpkgs.legacyPackages."${system}".nixfmt; formatter = nixpkgs.legacyPackages."${system}".nixfmt;

View file

@ -1,5 +1,6 @@
#! /usr/bin/env nix-shell #! /usr/bin/env nix-shell
#! nix-shell -i bash -p bash gnupg #! nix-shell -i bash -p bash gnupg
# shellcheck shell=bash
set -euo pipefail set -euo pipefail

View file

@ -1,5 +1,6 @@
#! /usr/bin/env nix-shell #! /usr/bin/env nix-shell
#! nix-shell -i bash -p bash parted cryptsetup btrfs-progs #! nix-shell -i bash -p bash parted cryptsetup btrfs-progs
# shellcheck shell=bash
set -euo pipefail set -euo pipefail