Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9dd9ca2

Browse files
12rambauLee-W
authored andcommitted
refactor: set default_install_hook_types
1 parent d07c029 commit 9dd9ca2

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
@@ -62,7 +62,7 @@ pytest-xdist = "^3.1.0"
6262
black = "^22.10"
6363
# linter
6464
ruff = "^0.0.262"
65-
pre-commit = "^2.6.0"
65+
pre-commit = "^2.18.0"
6666
mypy = "^0.931"
6767
types-PyYAML = "^5.4.3"
6868
types-termcolor = "^0.1.1"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /