File tree Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 33cz template for [ commitizen] ( https://github.com/Woile/commitizen ) v3
44
55## Prerequiste
6- * Python 3.x
7- * [ cookiecutter] ( https://cookiecutter.readthedocs.io/en/latest/ )
8- * ` python -m pip install cookiecutter `
6+
7+ - Python 3.x
8+ - Poetry 1.2.x
9+ - [ cookiecutter] ( https://cookiecutter.readthedocs.io/en/latest/ )
10+ - ` python -m pip install cookiecutter `
911
1012## Usage
1113
12141 . Initialize project through cookiecutter
1315
14- ``` sh
15- cookiecutter gh:commitizen-tools/commitizen_cz_template
16- ```
16+ ``` sh
17+ cookiecutter gh:commitizen-tools/commitizen_cz_template
18+ ```
1719
18- Note that you don' t need to add cz prefix in your project name and package name.
20+ Note that you don't need to add cz prefix in your project name and package name.
1921
20222 . Implement the ` questions ` and ` message ` function in your ` cz_[cz_name].py `
21233 . Publish it to [ pypi] ( https://pypi.org/ ) or install locally through ` pip install . `
Original file line number Diff line number Diff line change @@ -6,16 +6,17 @@ authors = ["Wei Lee <weilee.rx@gmail.com>"]
66license = " MIT"
77
88[tool .poetry .dependencies ]
9- python = " ^3.7 "
9+ python = " ^3.11 "
1010
11- [tool .poetry .dev- dependencies ]
12- commitizen = " ^1.11.0 "
11+ [tool .poetry .group . dev . dependencies ]
12+ commitizen = " ^3 "
1313
1414[tool .commitizen ]
1515version = " 0.1.0"
16+
1617[build-system ]
17- requires = [" poetry>=0.12 " ]
18- build-backend = " poetry.masonry.api"
18+ requires = [" poetry_core>=1.0.0 " ]
19+ build-backend = " poetry.core. masonry.api"
1920
2021[tool .poetry .plugins ."commitizen .plugin" ]
2122cz_{{cookiecutter.cz_name}} = "{{cookiecutter.cz_name}}.cz_{{cookiecutter.cz_name}}:{{cookiecutter.cz_name | capitalize}}Cz"
You can’t perform that action at this time.
0 commit comments