Skip to content

Commit e75b837

Browse files
Lee-Wwoile
authored andcommitted
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.
1 parent 665aa59 commit e75b837

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ default_install_hook_types:
44
- pre-push
55

66
default_stages:
7-
- commit
8-
- push
7+
- pre-commit
8+
- pre-push
99

1010
repos:
1111
- repo: meta
@@ -55,7 +55,7 @@ repos:
5555
- id: commitizen-branch
5656
stages:
5757
- post-commit
58-
- push
58+
- pre-push
5959

6060
- repo: local
6161
hooks:
@@ -70,6 +70,6 @@ repos:
7070
name: linter and test
7171
language: system
7272
pass_filenames: false
73-
stages: [ push ]
73+
stages: [ pre-push ]
7474
entry: ./scripts/test
7575
types: [ python ]

0 commit comments

Comments
 (0)