feat(flake): add shellcheck to pre-commit-check
This commit is contained in:
parent
ab0bc5268b
commit
86e655057e
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue