Skip to content

Commit a2fe54b

Browse files
timsu92Lee-W
authored andcommitted
fix(init): use pre-push as pre-commit stage
Original "push" stage has been deprecated since pre-commit v3.2.0. See pre-commit/pre-commit#2732 and pre-commit/pre-commit#2808 for detailed information.
1 parent 68c4360 commit a2fe54b

File tree

4 files changed

+219
-193
lines changed

4 files changed

+219
-193
lines changed

.pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@
2424
pass_filenames: false
2525
language: python
2626
language_version: python3
27-
minimum_pre_commit_version: "1.4.3"
27+
minimum_pre_commit_version: "3.2.0"

commitizen/commands/init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def _get_config_data(self) -> dict[str, Any]:
328328
"rev": f"v{__version__}",
329329
"hooks": [
330330
{"id": "commitizen"},
331-
{"id": "commitizen-branch", "stages": ["push"]},
331+
{"id": "commitizen-branch", "stages": ["pre-push"]},
332332
],
333333
}
334334

0 commit comments

Comments
 (0)