chore: add commitizen
This commit is contained in:
parent
13c24e8bf0
commit
a1cce75270
2 changed files with 7 additions and 29 deletions
7
.cz.toml
Normal file
7
.cz.toml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[tool.commitizen]
|
||||
name = "cz_conventional_commits"
|
||||
tag_format = "$version"
|
||||
version_scheme = "semver"
|
||||
version_provider = "cargo"
|
||||
update_changelog_on_bump = true
|
||||
major_version_zero = true
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
default_install_hook_types: [commit-msg, pre-commit]
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.4.0
|
||||
hooks:
|
||||
- id: check-yaml
|
||||
stages: [commit]
|
||||
- id: check-json
|
||||
stages: [commit]
|
||||
- id: end-of-file-fixer
|
||||
stages: [commit]
|
||||
- repo: https://github.com/commitizen-tools/commitizen
|
||||
rev: 3.0.1
|
||||
hooks:
|
||||
- id: commitizen
|
||||
stages:
|
||||
- commit-msg
|
||||
- repo: https://github.com/doublify/pre-commit-rust
|
||||
rev: v1.0
|
||||
hooks:
|
||||
- id: fmt
|
||||
- id: cargo-check
|
||||
- id: clippy
|
||||
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
|
||||
rev: v9.5.0
|
||||
hooks:
|
||||
- id: commitlint
|
||||
stages: [commit-msg]
|
||||
additional_dependencies: ["@commitlint/config-conventional"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue