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 3
3
cz template for [ commitizen] ( https://github.com/Woile/commitizen ) v3
4
4
5
5
## 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 `
9
11
10
12
## Usage
11
13
12
14
1 . Initialize project through cookiecutter
13
15
14
- ``` sh
15
- cookiecutter gh:commitizen-tools/commitizen_cz_template
16
- ```
16
+ ``` sh
17
+ cookiecutter gh:commitizen-tools/commitizen_cz_template
18
+ ```
17
19
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.
19
21
20
22
2 . Implement the ` questions ` and ` message ` function in your ` cz_[cz_name].py `
21
23
3 . Publish it to [ pypi] ( https://pypi.org/ ) or install locally through ` pip install . `
Original file line number Diff line number Diff line change 6
6
license = " MIT"
7
7
8
8
[tool .poetry .dependencies ]
9
- python = " ^3.7 "
9
+ python = " ^3.11 "
10
10
11
- [tool .poetry .dev- dependencies ]
12
- commitizen = " ^1.11.0 "
11
+ [tool .poetry .group . dev . dependencies ]
12
+ commitizen = " ^3 "
13
13
14
14
[tool .commitizen ]
15
15
version = " 0.1.0"
16
+
16
17
[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"
19
20
20
21
[tool .poetry .plugins ."commitizen .plugin" ]
21
22
cz_{{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