update devenv

Signed-off-by: gwg313 <gwg313@pm.me>
This commit is contained in:
gwg313 2026-06-26 20:50:44 -04:00
parent d16fa1c3e3
commit 185a4a7efb
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
5 changed files with 172 additions and 55 deletions

View file

@ -20,6 +20,7 @@
shellcheck
gitleaks
yamlfmt
go-task
];
# https://devenv.sh/languages/
@ -54,43 +55,46 @@
'';
# https://devenv.sh/pre-commit-hooks/
# git-hooks.hooks = {
# check-yaml.enable = true;
# end-of-file-fixer.enable = true;
# trim-trailing-whitespace.enable = true;
# yamlfmt = {
# enable = true;
# entry = "yamlfmt";
# args = ["-in-place"];
# files = "\\.ya?ml$";
# language = "system";
# };
# yamllint.enable = true;
# shellcheck.enable = true;
#
# kubeconform = {
# enable = true;
# entry = "kubeconform";
# args = [
# "-strict"
# "-summary"
# "-ignore-missing-schemas"
# "-schema-location"
# "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/{{.ResourceKind}}-{{.ResourceAPIVersion}}.json"
# "-schema-location"
# "default"
# ];
# files = "\\.ya?ml$";
# };
#
# gitleaks = {
# enable = true;
# entry = "gitleaks detect --no-git -v --redact";
# language = "system";
# pass_filenames = false;
# };
# };
# pre-commit.hooks.shellcheck.enable = true;
git-hooks.hooks = {
check-yaml.enable = true;
end-of-file-fixer.enable = true;
trim-trailing-whitespace.enable = true;
yamlfmt = {
enable = true;
entry = "yamlfmt";
args = ["-in-place"];
files = "\\.ya?ml$";
language = "system";
};
yamllint.enable = true;
shellcheck.enable = true;
kubeconform = {
enable = true;
entry = "kubeconform";
args = [
"-strict"
"-summary"
"-ignore-missing-schemas"
"-schema-location"
"https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/{{.ResourceKind}}-{{.ResourceAPIVersion}}.json"
"-schema-location"
"default"
];
files = "\\.ya?ml$";
language = "system";
pass_filenames = true;
};
gitleaks = {
enable = true;
entry = "gitleaks detect --no-git -v --redact";
language = "system";
pass_filenames = false;
};
};
# See full reference at https://devenv.sh/reference/options/
}