From 65bcce265eb289250fee4012757796fd7478790e Mon Sep 17 00:00:00 2001 From: Wei Lee Date: Sat, 26 Oct 2024 00:33:16 +0800 Subject: [PATCH] ci(pre-commit): migrate pre-commit config (#43372) We update the names of the pre-commit stages. From the https://pre-commit.com/#confining-hooks-to-run-at-certain-stages: new in 3.2.0: The values of stages match the hook names. Previously, commit, push, and merge-commit matched pre-commit, pre-push, and pre-merge-commit respectively. (cherry picked from commit add8e9d1a37279d1755138756a194d1dad693f93) --- .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 1385d405a20f..c6a19314521b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. --- -default_stages: [commit, push] +default_stages: [pre-commit, pre-push] default_language_version: python: python3 node: 22.2.0