ci(cz): adding commitizen config

This commit is contained in:
Scott Lyons 2024-08-10 18:04:07 -07:00
commit 9feea56056
2 changed files with 26 additions and 20 deletions

7
.cz.toml Normal file
View file

@ -0,0 +1,7 @@
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "v$version"
version_scheme = "semver"
version_provider = "cargo"
update_changelog_on_bump = true
major_version_zero = true

View file

@ -1,21 +1,20 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - hooks:
rev: v3.2.0 - id: trailing-whitespace
hooks: - id: end-of-file-fixer
- id: trailing-whitespace - id: check-yaml
- id: end-of-file-fixer - id: check-added-large-files
- id: check-yaml repo: https://github.com/pre-commit/pre-commit-hooks
- id: check-added-large-files rev: v3.2.0
- repo: https://github.com/FeryET/pre-commit-rust - hooks:
rev: v1.1.0 - id: fmt
hooks: - id: cargo-check
- id: fmt repo: https://github.com/FeryET/pre-commit-rust
- id: cargo-check rev: v1.1.0
- repo: https://github.com/compilerla/conventional-pre-commit - hooks:
rev: v3.4.0 - id: commitizen
hooks: - id: commitizen-branch
- id: conventional-pre-commit stages:
stages: [commit-msg] - push
args: [] repo: https://github.com/commitizen-tools/commitizen
rev: master