diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1d17dae --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.venv diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..cd23e24 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,8 @@ +repos: +- hooks: + - id: commitizen + - id: commitizen-branch + stages: + - push + repo: https://github.com/commitizen-tools/commitizen + rev: v3.29.1 diff --git a/commit b/commit new file mode 100755 index 0000000..d80b4d5 --- /dev/null +++ b/commit @@ -0,0 +1,5 @@ +#!/bin/bash + +source venv/bin/activate +git add --all . +cz commit -- -s diff --git a/cz.json b/cz.json new file mode 100644 index 0000000..48d2698 --- /dev/null +++ b/cz.json @@ -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 + } +} diff --git a/init_commitizen b/init_commitizen new file mode 100755 index 0000000..21f7844 --- /dev/null +++ b/init_commitizen @@ -0,0 +1,7 @@ +#! /bin/bash + +python -m venv .venv +source .venv/bin/activate + +# Install Commitizen +pip install -r requirements.txt \ No newline at end of file diff --git a/push b/push new file mode 100755 index 0000000..9b6b6f6 --- /dev/null +++ b/push @@ -0,0 +1,4 @@ +#!/bin/bash + +git push --all +git push --tags diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..3c76eb0 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +commitizen +pipx +pre-commit \ No newline at end of file