Lint yaml better

This commit is contained in:
Greg Hellings
2025-11-02 23:45:16 -06:00
parent 518c3898b6
commit af41fd6b92
12 changed files with 86 additions and 32 deletions
+26 -1
View File
@@ -1,4 +1,9 @@
{ hooks, system, ... }:
{
hooks,
lib,
system,
...
}:
{
pre-commit-check = hooks.lib.${system}.run {
@@ -9,6 +14,26 @@
#flake-checker.enable = true;
nixfmt-rfc-style.enable = true;
check-merge-conflicts.enable = true;
check-yaml.enable = true;
yamllint = {
enable = true;
args = [
"--config-data"
(lib.generators.toYAML { } {
extends = "default";
ignore = [
"manifests/cnpg-system/barman-cloud.yaml"
".pre-commit-config.yaml"
];
rules = {
comments = false;
comments-indentation = false;
document-start = false;
};
})
];
verbose = true;
};
};
};
}