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 4fddcbe

Browse files
committed
ci(pre-commit): add commitizen to pre-commit config
1 parent 89df39e commit 4fddcbe

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

‎.pre-commit-config.yaml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ repos:
99
args: [--markdown-linebreak-ext=md]
1010
- id: debug-statements
1111
- id: no-commit-to-branch
12+
13+
- repo: https://github.com/Woile/commitizen
14+
rev: v1.23.0
15+
hooks:
16+
- id: commitizen
17+
stages: [commit-msg]
18+
1219
- repo: local
1320
hooks:
1421
- id: reformat

‎docs/contributing.md‎

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

0 commit comments

Comments
(0)

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