mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
vanadium: pre-commits
This commit is contained in:
parent
29c4ca1a81
commit
89ae4c2ad7
2 changed files with 13 additions and 1 deletions
4
nix/git-identities/hooks/cabal/pre-commit
Executable file
4
nix/git-identities/hooks/cabal/pre-commit
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
make style
|
||||
make lint
|
||||
|
|
@ -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}")
|
||||
];
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue