feat(commitizen): add commitizen config
Signed-off-by: zontreck <tarapiccari@gmail.com>
This commit is contained in:
parent
16cbd9d517
commit
12816746e8
7 changed files with 38 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
.venv
|
8
.pre-commit-config.yaml
Normal file
8
.pre-commit-config.yaml
Normal 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
5
commit
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source venv/bin/activate
|
||||||
|
git add --all .
|
||||||
|
cz commit -- -s
|
10
cz.json
Normal file
10
cz.json
Normal 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
7
init_commitizen
Executable 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
4
push
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
git push --all
|
||||||
|
git push --tags
|
3
requirements.txt
Normal file
3
requirements.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
commitizen
|
||||||
|
pipx
|
||||||
|
pre-commit
|
Loading…
Reference in a new issue