Set up shfmt

This commit is contained in:
Sven van Heugten 2026-03-02 20:53:52 +01:00
parent 769d7da9b2
commit 5dbb6aea8f
No known key found for this signature in database
GPG key ID: D612F88666F4F660
4 changed files with 16 additions and 6 deletions

View file

@ -8,6 +8,7 @@
shellcheck-minimal,
gitMinimal,
resholve,
shfmt,
}:
let
@ -20,6 +21,7 @@ resholve.mkDerivation {
src = fs.toSource {
root = ./.;
fileset = fs.unions [
./.editorconfig
./bin
./test
];
@ -33,11 +35,13 @@ resholve.mkDerivation {
shellcheck-minimal
bats
gitMinimal
shfmt
];
checkPhase = ''
runHook preCheck
shellcheck bin/git-check-assertions test/git-check-assertions.bats
shfmt -d bin/git-check-assertions test/git-check-assertions.bats
./test/git-check-assertions.bats
runHook postCheck
'';