We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7717179 commit 6ece0a0Copy full SHA for 6ece0a0
nix/hooks.nix
@@ -1,4 +1,11 @@
1
{ inputs, ... }:
2
+let
3
+ ghWorkflows = builtins.attrNames (builtins.readDir ../.github/workflows);
4
+ lintedWorkflows = [
5
+ "nix-eval.yml"
6
+ "nix-build.yml"
7
+ ];
8
+in
9
{
10
imports = [ inputs.git-hooks.flakeModule ];
11
perSystem =
@@ -8,9 +15,17 @@
15
check.enable = true;
16
settings = {
17
hooks = {
18
+ actionlint = {
19
+ enable = true;
20
+ excludes = builtins.filter (name: !builtins.elem name lintedWorkflows) ghWorkflows;
21
+ verbose = true;
22
+ };
23
+
24
treefmt = {
12
25
enable = true;
13
26
package = config.treefmt.build.wrapper;
27
+ pass_filenames = false;
28
14
29
};
30
31
0 commit comments