Skip to content

Commit cc004b8

Browse files
committed
feat: add commitizen pre-commit hook and edit settings
1 parent e57a9a8 commit cc004b8

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

{{cookiecutter.project_name}}/.cz.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ write_version_files = [
1111
"src/{{ cookiecutter.package_name }}/__init__.py:__version__",
1212
]
1313
commit_msg_file = ".git/COMMIT_EDITMSG"
14+
retry_after_failure = true
15+
update_changelog_on_bump = true
1416

1517
[tool.commitizen.github]
1618
release = true

{{cookiecutter.project_name}}/.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,10 @@ repos:
2121

2222
- id: ruff
2323
args: [--fix, --exit-non-zero-on-fix, --config=.ruff.toml]
24+
25+
- repo: https://github.com/commitizen-tools/commitizen
26+
rev: v1.17.0
27+
hooks:
28+
- id: commitizen
29+
- id: commitizen-branch
30+
stages: [ commit-msg ]

0 commit comments

Comments
 (0)