11.stylix/flake/dev/pre-commit.nix
awwpotato a5c1532ab8
flake: partition dev inputs (#1289)
Link: https://github.com/nix-community/stylix/pull/1289

Reviewed-by: Daniel Thwaites <danth@danth.me>
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-07-06 23:56:44 +02:00

38 lines
834 B
Nix

{ inputs, ... }:
{
imports = [
inputs.git-hooks.flakeModule
];
perSystem =
{ config, ... }:
{
pre-commit = {
check.enable = true;
settings.hooks = {
# keep-sorted start block=yes
deadnix = {
enable = true;
settings.noUnderscore = 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
};
};
};
}