Skip to content

Commit 0c2a6c1

Browse files
authored
fix: fix precommit Argument list too long error (#502)
Signed-off-by: yuluo-yx <[email protected]>
1 parent 3925cb9 commit 0c2a6c1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tools/make/pre-commit.mk

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ precommit-check:
1111
@FILES=$$(find . -type f \( -name "*.go" -o -name "*.rs" -o -name "*.py" -o -name "*.js" -o -name "*.md" -o -name "*.yaml" -o -name "*.yml" \) \
1212
! -path "./target/*" \
1313
! -path "./candle-binding/target/*" \
14-
! -path "./.git/*" \
15-
! -path "./node_modules/*" \
16-
! -path "./vendor/*" \
14+
! -path "./website/node_modules/*" \
15+
! -path "./frontend/node_modules/*" \
16+
! -path "./website/.docusaurus/*" \
1717
! -path "./__pycache__/*" \
18-
! -path "./site/*" \
18+
! -path "./.venv/*" \
19+
! -path "./vendor/*" \
1920
! -name "*.pb.go" \
21+
! -path "./.git/*" \
2022
| tr '\n' ' '); \
2123
if [ -n "$$FILES" ]; then \
2224
echo "Running pre-commit on files: $$FILES"; \

0 commit comments

Comments
 (0)