Skip to content

Commit d57a3f5

Browse files
committed
chore: add commitizen for conventional commits
- Add commitizen hook to pre-commit config - Configure commitizen in pyproject.toml - Add commitizen as dev dependency
1 parent dd689b5 commit d57a3f5

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ repos:
44
hooks:
55
- id: ruff
66
args: [--fix]
7-
- id: ruff-format
7+
- id: ruff-format - repo: https://github.com/commitizen-tools/commitizen
8+
rev: v4.1.0
9+
hooks:
10+
- id: commitizen
11+
stages: [commit-msg]

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,4 @@ check_untyped_defs = true
6565
warn_return_any = true
6666
warn_unused_ignores = true
6767
show_error_codes = true
68+

0 commit comments

Comments
 (0)