From f90587b580a09b4ea66bb0f796a55699278c49b9 Mon Sep 17 00:00:00 2001 From: Joseph Perez Date: Wed, 15 Jan 2025 16:03:50 +0100 Subject: [PATCH] fix: fix pre-commit command for fish shell (#1719) --- .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 33d70d72d..bca772354 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,6 +16,6 @@ repos: hooks: - id: fmt name: fmt - entry: rustfmt --config "unstable_features=true,imports_granularity=Crate,group_imports=StdExternalCrate,skip_children=true" $(git ls-files '*.rs') + entry: bash -c 'rustfmt --config "unstable_features=true,imports_granularity=Crate,group_imports=StdExternalCrate,skip_children=true" $(git ls-files '*.rs')' language: system types: [rust]