From 90388ed48c98f6538da27edc4d014fd19ff36cb1 Mon Sep 17 00:00:00 2001 From: bronsen Date: Sun, 22 Feb 2026 12:08:17 +0100 Subject: [PATCH] prek: clean up config file --- prek.toml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/prek.toml b/prek.toml index 083a1dc..888680c 100644 --- a/prek.toml +++ b/prek.toml @@ -1,5 +1,7 @@ #:tombi schema.strict = false +# see also: https://prek.j178.dev/builtin/ + exclude = { glob = ["__snapshots__/**", "__pycache__", "dist/**"] } [[repos]] @@ -7,19 +9,11 @@ repo = "builtin" hooks = [ { id = "check-case-conflict" }, { id = "check-merge-conflict" }, - { id = "check-json" }, - { id = "check-symlinks" }, { id = "check-toml" }, - { id = "check-yaml", args = [ - # "--allow-multiple-documents", #https://prek.j178.dev/builtin/#check-yaml - ] }, + { id = "check-yaml" }, { id = "end-of-file-fixer" }, - { id = "mixed-line-ending", args = [ - "--fix=lf", # https://prek.j178.dev/builtin/#mixed-line-ending - ] }, - { id = "trailing-whitespace", args = [ - "--markdown-linebreak-ext=md", # https://prek.j178.dev/builtin/#trailing-whitespace - ] }, + { id = "mixed-line-ending", args = [ "--fix=lf" ] }, + { id = "trailing-whitespace", args = [ "--markdown-linebreak-ext=md" ] }, ] [[repos]]