fix: exclude secrets from yaml linting

This commit is contained in:
Dmitriy Kholkin 2025-03-10 19:52:46 +03:00
parent 0d155fa553
commit bf9584b0f1
Signed by: AtaraxiaDev
GPG Key ID: FD266B810DF48DF2

View File

@ -115,23 +115,33 @@
enable = true; enable = true;
lsp.package = pkgs.nixd; lsp.package = pkgs.nixd;
}; };
pre-commit.hooks = { pre-commit.hooks =
actionlint.enable = true; let
deadnix.enable = true; default = {
flake-checker.enable = true; enable = true;
lychee.enable = true; excludes = [ "secrets/.*" ];
lychee.args = [ };
in
{
actionlint = default;
deadnix = default;
flake-checker = default;
lychee = default // {
args = [
"--exclude-all-private"
"--exclude" "--exclude"
"^https://.+\\.backblazeb2\\.com" "^https://.*\\.backblazeb2\\.com"
"--exclude"
"^https://.*\\.ataraxiadev\\.com"
]; ];
markdownlint.enable = true; };
nixfmt-rfc-style.enable = true; markdownlint = default;
ripsecrets.enable = true; nixfmt-rfc-style = default;
# statix.enable = true; ripsecrets = default;
typos.enable = true; typos = default;
yamlfmt.enable = true; yamlfmt = default;
yamllint.enable = true; yamllint = default // {
yamllint.args = [ args = [
"--config-file" "--config-file"
".yamllint" ".yamllint"
"--format" "--format"
@ -140,6 +150,7 @@
}; };
}; };
}; };
};
} }
); );
} }