Skip to content

Commit 6e42ea3

Browse files
committed
refactor: set default_install_hook_types
1 parent 378a428 commit 6e42ea3

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.pre-commit-config.yaml

+6
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

+1-1
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ black = "^21.12b0"
7474
isort = "^5.7.0"
7575
# linter
7676
flake8 = "^3.6"
77-
pre-commit = "^2.6.0"
77+
pre-commit = "^2.18.0"
7878
mypy = "^0.931"
7979
types-PyYAML = "^5.4.3"
8080
types-termcolor = "^0.1.1"

0 commit comments

Comments
 (0)