11.stylix/flake/dev/pre-commit.nix
awwpotato f826d3214b
stylix: add generated all-maintainers file (#1654)
Link: https://github.com/nix-community/stylix/pull/1654

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-07-19 15:50:17 -07:00

50 lines
1.2 KiB
Nix

{ inputs, ... }:
{
imports = [
inputs.git-hooks.flakeModule
];
perSystem =
{ config, ... }:
{
pre-commit = {
check.enable = true;
settings.hooks = {
# keep-sorted start block=yes
all-maintainers = {
enable = true;
entry = config.apps.all-maintainers.program;
files = "^(${
builtins.concatStringsSep "|" [
''flake\.lock''
''generated\/all-maintainers.nix''
''modules\/.*\/meta\.nix''
''stylix\/maintainers\.nix''
]
})$";
};
deadnix = {
enable = true;
settings.noLambdaPatternNames = true;
};
editorconfig-checker.enable = true;
hlint.enable = true;
statix.enable = true;
treefmt = {
enable = true;
package = config.formatter;
};
typos = {
enable = true;
settings.configuration = ''
[default.extend-identifiers]
MrSom3body="MrSom3body"
'';
};
yamllint.enable = true;
# keep-sorted end
};
};
};
}