From 7116af517494f4811805eaf1d6eb3a6bb9979db9 Mon Sep 17 00:00:00 2001 From: Wei Lee Date: Sun, 10 Nov 2024 11:16:03 +0800 Subject: [PATCH] build(pre-commit): migrate pre-commit config When running `pre-commit run --all-files`, the following error was encountered. ``` [WARNING] hook id `commitizen-branch` uses deprecated stage names (push) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. [WARNING] hook id `linter and test` uses deprecated stage names (push) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. [WARNING] top-level `default_stages` uses deprecated stage names (commit, push) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. ``` This commit only only migrates the pre-commit config to the latest version. --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a83ba0dcf6..98203229d9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,8 +4,8 @@ default_install_hook_types: - pre-push default_stages: - - commit - - push + - pre-commit + - pre-push repos: - repo: meta @@ -55,7 +55,7 @@ repos: - id: commitizen-branch stages: - post-commit - - push + - pre-push - repo: local hooks: @@ -70,6 +70,6 @@ repos: name: linter and test language: system pass_filenames: false - stages: [ push ] + stages: [ pre-push ] entry: ./scripts/test types: [ python ]