feat(commitizen): add commitizen config

Signed-off-by: zontreck <tarapiccari@gmail.com>
This commit is contained in:
zontreck 2024-10-06 14:49:47 -07:00
parent 16cbd9d517
commit 12816746e8
7 changed files with 38 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.venv

8
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,8 @@
repos:
- hooks:
- id: commitizen
- id: commitizen-branch
stages:
- push
repo: https://github.com/commitizen-tools/commitizen
rev: v3.29.1

5
commit Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
source venv/bin/activate
git add --all .
cz commit -- -s

10
cz.json Normal file
View file

@ -0,0 +1,10 @@
{
"commitizen": {
"name": "cz_conventional_commits",
"tag_format": "$version",
"version_scheme": "semver2",
"version": "0.0.1",
"update_changelog_on_bump": true,
"major_version_zero": true
}
}

7
init_commitizen Executable file
View file

@ -0,0 +1,7 @@
#! /bin/bash
python -m venv .venv
source .venv/bin/activate
# Install Commitizen
pip install -r requirements.txt

4
push Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
git push --all
git push --tags

3
requirements.txt Normal file
View file

@ -0,0 +1,3 @@
commitizen
pipx
pre-commit