This is an automated email from the ASF dual-hosted git repository.

hainenber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 49dc0acd827 fix(pre-commit): prettier hook drops first file and never 
batches (#41944)
49dc0acd827 is described below

commit 49dc0acd827ae59845dc079e980a0ff701114396
Author: Evan Rusackas <[email protected]>
AuthorDate: Sat Jul 11 21:17:27 2026 -0700

    fix(pre-commit): prettier hook drops first file and never batches (#41944)
    
    Co-authored-by: Claude Sonnet 5 <[email protected]>
    Co-authored-by: Copilot Autofix powered by AI 
<[email protected]>
---
 .pre-commit-config.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index ca9dbe3c73d..a1f3214ab05 100755
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -63,7 +63,7 @@ repos:
     hooks:
       - id: prettier-frontend
         name: prettier (frontend)
-        entry: bash -c 'cd superset-frontend && for file in "$@"; do npx 
prettier --write "${file#superset-frontend/}"; done'
+        entry: bash -c 'cd superset-frontend && files=(); for f in "$@"; do 
files+=("${f#superset-frontend/}"); done; npx prettier --write -- 
"${files[@]}"' --
         language: system
         pass_filenames: true
         files: ^superset-frontend/.*\.(js|jsx|ts|tsx|css|scss|sass|json)$

Reply via email to