init
Usage¶
Example¶
To start using commitizen, the recommended approach is to run
cz init
This command will ask you for information about the project and will
configure the selected file type (pyproject.toml
, .cz.toml
, etc.).
The init
will help you with
- Choose a convention rules (
name
) - Choosing a version provider (
commitizen
or for exampleCargo.toml
) - Detecting your project's version
- Detecting the tag format used
- Choosing a version type (
semver
orpep440
) - Whether to create the changelog automatically or not during bump
- Whether you want to keep the major as zero while building alpha software.
- Whether to setup pre-commit hooks.