11.stylix/flake/dev/pre-commit.nix
awwpotato 4add678fe3
stylix: do not check lambda pattern names with deadnix (#1689)
Link: https://github.com/nix-community/stylix/pull/1689
Reverts: c117edd7ee ("stylix: allow underscore in mkTarget configElements args (#1473)")

Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-07-15 18:26:38 +02:00

38 lines
842 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.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
};
};
};
}