chore(checks): exclude vendored files from the formatting hooks
commit
993219bchore(checks): exclude vendored files from the formatting hooks
Vendored content (tracked in .gitvendors) is kept byte-for-byte as upstream so git-vendor can diff it against the recorded base; letting the whitespace and end-of-file hooks rewrite it would show false drift.
chore(checks): exclude the vendored icons directory from pre-commit Assisted-by: Claude:claude-opus-4-8
Reviews
No reviews of this commit yet — record a verdict below.
Start a review
.config/pre-commit.yaml
@@ -1,4 +1,6 @@
-exclude: ^(.*/)?(CHANGELOG\.md)$
+# Vendored content (see .gitvendors) is kept byte-for-byte as upstream, so it
+# must not be reformatted by the hooks below.
+exclude: ^(.*/)?(CHANGELOG\.md)$|^crates/git-ents-server/src/web/icons/
default_install_hook_types: [pre-commit, commit-msg]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks