Skip to content

Commit dea006a

Browse files
committed
feat(cookiecutter_template): Initial cookiecutter template for commitizen cz
1 parent 06f0b39 commit dea006a

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

{{cookiecutter.cz_name}}/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# {{cookiecutter.cz_name}}
2+
3+
## Usage
4+
5+
## Author
6+
{{cookiecutter.author_name}} ({{cookiecutter.email}})
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from commitizen.cz.base import BaseCommitizen
2+
3+
4+
class {{cookiecutter.cz_name | capitalize}}Cz(BaseCommitizen):
5+
def questions(self) -> list:
6+
raise NotImplementedError("Not Implemented yet")
7+
8+
def message(self, answers: dict) -> str:
9+
raise NotImplementedError("Not Implemented yet")
10+
11+
12+
discover_this = {{cookiecutter.cz_name | capitalize}}Cz

{{cookiecutter.cz_name}}/setup.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from setuptools import setup
2+
3+
4+
setup(
5+
name="{{cookiecutter.package_name}}",
6+
version="{{cookiecutter.version}}",
7+
py_modules=["cz_{{cookiecutter.cz_name}}"],
8+
license="{{cookiecutter.license}}",
9+
long_description="{{cookiecutter.package_description}}",
10+
install_requires=["commitizen"],
11+
)

{{cookiecutter.cz_name}}/tests/test_cz_{{cookiecutter.cz_name}}.py

Whitespace-only changes.

0 commit comments

Comments
 (0)