prek: clean up config file

This commit is contained in:
bronsen 2026-02-22 12:08:17 +01:00
parent 387a6f4e34
commit 90388ed48c

View file

@ -1,5 +1,7 @@
#:tombi schema.strict = false #:tombi schema.strict = false
# see also: https://prek.j178.dev/builtin/
exclude = { glob = ["__snapshots__/**", "__pycache__", "dist/**"] } exclude = { glob = ["__snapshots__/**", "__pycache__", "dist/**"] }
[[repos]] [[repos]]
@ -7,19 +9,11 @@ repo = "builtin"
hooks = [ hooks = [
{ id = "check-case-conflict" }, { id = "check-case-conflict" },
{ id = "check-merge-conflict" }, { id = "check-merge-conflict" },
{ id = "check-json" },
{ id = "check-symlinks" },
{ id = "check-toml" }, { id = "check-toml" },
{ id = "check-yaml", args = [ { id = "check-yaml" },
# "--allow-multiple-documents", #https://prek.j178.dev/builtin/#check-yaml
] },
{ id = "end-of-file-fixer" }, { id = "end-of-file-fixer" },
{ id = "mixed-line-ending", args = [ { id = "mixed-line-ending", args = [ "--fix=lf" ] },
"--fix=lf", # https://prek.j178.dev/builtin/#mixed-line-ending { id = "trailing-whitespace", args = [ "--markdown-linebreak-ext=md" ] },
] },
{ id = "trailing-whitespace", args = [
"--markdown-linebreak-ext=md", # https://prek.j178.dev/builtin/#trailing-whitespace
] },
] ]
[[repos]] [[repos]]