blob: 779ea746ddff55655ddb105b077ae5c37027d3bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
let
sources = import ./npins;
pkgs = import sources.nixpkgs { };
pre-commit-hooks = import sources.pre-commit-hooks;
in
{
pre-commit-check = pre-commit-hooks.run {
src = ./.;
hooks = {
go-mod-tidy = {
enable = true;
name = "go-mod-tidy";
description = "Run `go mod tidy`";
types_or = [ "go" "go-mod" ];
entry = "${pkgs.go}/bin/go mod tidy";
pass_filenames = false;
};
};
};
}
|