From a1cce752704e0b9d8e63e1e9a88ee69b75c07740 Mon Sep 17 00:00:00 2001 From: Sandro Eiler Date: Thu, 28 Dec 2023 21:57:26 +0100 Subject: [PATCH] chore: add commitizen --- .cz.toml | 7 +++++++ .pre-commit-config.yaml | 29 ----------------------------- 2 files changed, 7 insertions(+), 29 deletions(-) create mode 100644 .cz.toml delete mode 100644 .pre-commit-config.yaml diff --git a/.cz.toml b/.cz.toml new file mode 100644 index 0000000..5ac0af5 --- /dev/null +++ b/.cz.toml @@ -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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index f07d323..0000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -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"]