vanadium: pre-commits

This commit is contained in:
Primrose 2025-11-11 13:04:06 +08:00
parent 29c4ca1a81
commit 89ae4c2ad7
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
2 changed files with 13 additions and 1 deletions

View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
make style
make lint

View file

@ -1,4 +1,7 @@
let
sources = import ../../npins;
lib = import (sources.nixpkgs + "/lib");
haskellIdentity = {
init.defaultBranch = "main";
user.name = "Léana Jiang";
@ -16,6 +19,8 @@ let
blameIgnore = {
blame.ignoreRevsFile = ".git-blame-ignore-revs";
};
hooks = scriptsPath: { core.hooksPath = scriptsPath; };
in
[
# Univ stuff
@ -49,6 +54,9 @@ in
{
url = "github.com";
path = "haskell/cabal.git";
contents = blameIgnore;
contents = lib.mkMerge [
blameIgnore
(hooks "${./hooks/cabal}")
];
}
]