From 9c33cbfdc8fadfb5662479edab59a9cd56a21850 Mon Sep 17 00:00:00 2001 From: Florian Preinstorfer Date: Mon, 24 Nov 2025 06:59:09 +0100 Subject: [PATCH] Exclude docs/ only for prettier pre-commit hook Applying the the built-in hooks to docs/ seems to be fine. --- .pre-commit-config.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 719c3597..ed869775 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,8 +2,8 @@ # See: https://prek.j178.dev/quickstart/ # See: https://prek.j178.dev/builtin/ -# Global exclusions - ignore docs and generated code -exclude: ^(docs/|gen/) +# Global exclusions - ignore generated code +exclude: ^gen/ repos: # Built-in hooks from pre-commit/pre-commit-hooks @@ -42,6 +42,7 @@ repos: name: prettier entry: prettier --write --list-different language: system + exclude: ^docs/ types_or: [ javascript,