Skip to content

Commit 3201cc9

Browse files
committed
refactor: set default_install_hook_types
1 parent e3d8cf3 commit 3201cc9

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
default_install_hook_types:
2+
- pre-commit
3+
- commit-msg
4+
- pre-push
5+
16
default_stages:
27
- commit
38
- push
9+
410
repos:
511
- repo: https://github.com/pre-commit/pre-commit-hooks
612
rev: v4.1.0

docs/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ If you're a first-time contributor, you can check the issues with [good first is
1616
1. Fork [the repository](https://github.com/commitizen-tools/commitizen).
1717
2. Clone the repository from your GitHub.
1818
3. Setup development environment through [poetry](https://python-poetry.org/) (`poetry install`).
19-
4. Setup [pre-commit](https://pre-commit.com/) hook (`poetry run pre-commit install -t pre-commit -t pre-push -t commit-msg`)
19+
4. Setup [pre-commit](https://pre-commit.com/) hook (`poetry run pre-commit install`)
2020
5. Check out a new branch and add your modification.
2121
6. Add test cases for all your changes.
2222
(We use [CodeCov](https://codecov.io/) to ensure our test coverage does not drop.)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ black = "^22.10"
8383
isort = "^5.10.0"
8484
# linter
8585
flake8 = "^3.6"
86-
pre-commit = "^2.6.0"
86+
pre-commit = "^2.18.0"
8787
mypy = "^0.931"
8888
types-PyYAML = "^5.4.3"
8989
types-termcolor = "^0.1.1"

0 commit comments

Comments
 (0)