Skip to content

Commit ef27ea8

Browse files
committed
hooks: autonamte name and description
1 parent 2898aee commit ef27ea8

File tree

150 files changed

+2
-301
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+2
-301
lines changed

modules/hooks.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ let
1111
type = types.submoduleWith ({
1212
modules = [ hookModule ] ++ [
1313
module
14-
# TODO
1514
# Set name and description
16-
# ({ name, ... }: { config = { inherit name description; }; })
15+
({ name, ... }: { config = { inherit name description; }; })
1716
];
1817
});
1918
default = { };

modules/hooks/actionlint.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{ config, tools, lib, ... }:
22
{
33
config = {
4-
name = "actionlint";
5-
description = "Static checker for GitHub Actions workflow files";
64
files = "^.github/workflows/";
75
types = [ "yaml" ];
86
package = tools.actionlint;

modules/hooks/alejandra.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ in
3535
};
3636

3737
config = {
38-
name = "alejandra";
39-
description = "The Uncompromising Nix Code Formatter";
4038
package = tools.alejandra;
4139
entry =
4240
let

modules/hooks/annex.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{ config, tools, lib, ... }:
22
{
33
config = {
4-
name = "annex";
5-
description = "Runs the git-annex hook for large file support";
64
package = tools.git-annex;
75
entry = "${config.package}/bin/git-annex pre-commit";
86
};

modules/hooks/ansible-lint.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ in
1919
};
2020

2121
config = {
22-
name = "ansible-lint";
23-
description = "Ansible linter";
2422
package = tools.ansible-lint;
2523
entry =
2624
let

modules/hooks/autoflake.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ in
2323
};
2424

2525
config = {
26-
name = "autoflake";
27-
description = "Remove unused imports and variables from Python code";
2826
package = tools.autoflake;
2927
entry =
3028
let

modules/hooks/bats.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{ tools, lib, config, ... }:
22
{
33
config = {
4-
name = "bats";
5-
description = "Run bash unit tests";
64
types = [ "shell" ];
75
types_or = [ "bats" "bash" ];
86
package = tools.bats;

modules/hooks/beautysh.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{ tools, lib, config, ... }:
22
{
33
config = {
4-
name = "beautysh";
5-
description = "Format shell files";
64
types = [ "shell" ];
75
package = tools.beautysh;
86
entry = "${config.package}/bin/beautysh";

modules/hooks/biome.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ in
3838
};
3939

4040
config = {
41-
name = "biome";
42-
description = "A toolchain for web projects, aimed to provide functionalities to maintain them";
4341
types_or = [ "javascript" "jsx" "ts" "tsx" "json" ];
4442
package = tools.biome;
4543
entry =

modules/hooks/black.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ in
1313
};
1414

1515
config = {
16-
name = "black";
17-
description = "The uncompromising Python code formatter";
1816
package = tools.black;
1917
entry = "${config.package}/bin/black ${config.settings.flags}";
2018
types = [ "file" "python" ];

0 commit comments

Comments
 (0)