You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ha...@apache.org on 2026/07/12 04:17:34 UTC

(superset) branch master updated: fix(pre-commit): prettier hook drops first file and never batches (#41944)

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 <ev...@preset.io>
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 <no...@anthropic.com>
    Co-authored-by: Copilot Autofix powered by AI <17...@users.noreply.github.com>
---
 .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)$