|
1 | | -# .cz.toml |
2 | | -# See https://commitizen-tools.github.io/commitizen/config/ |
3 | | - |
4 | | -# Commitizen configuration for project release management (using Conventional Commits). |
5 | | - |
6 | 1 | [tool.commitizen] |
7 | | -# Format for Git tags created by cz bump. '$version' is replaced by the new version. |
8 | 2 | tag_format = "v$version" |
9 | | - |
10 | | -# Versioning scheme to use for deciding the next version based on commit types. |
11 | | -# See https://commitizen-tools.github.io/commitizen/versioning/ for options. |
12 | | -# 'pep440' (default) is common for Python (e.g., 0.1.0, 1.2.3) |
13 | | -# 'semver' is another popular standard (major.minor.patch) |
14 | 3 | version_scheme = "pep440" |
15 | 4 |
|
16 | 5 | # Set to true to allow bumping to 0.y.z from 0.(y-1).z when commit types normally trigger major bump. |
17 | 6 | # Recommended for initial development phases before 1.0.0. |
18 | 7 | major_version_zero = true |
19 | 8 |
|
20 | | -# Files where the version string should be updated when 'cz bump' is run. |
21 | | -# Ensure these paths and variable names match your project. |
22 | 9 | write_version_files = [ |
23 | | - # Updates the [project].version in pyproject.toml (PEP 621) |
24 | 10 | "pyproject.toml:version", |
25 | | - # Example: Update __version__ in your package's __init__.py |
26 | 11 | "src/{{ cookiecutter.package_name }}/__init__.py:__version__", |
27 | | - # Add other files if needed (e.g., YOUR_APP/__init__.py for complex structures) |
28 | 12 | ] |
29 | | - |
30 | | -# File where Commitizen reads/writes the commit message for manual commits (standard). |
31 | 13 | commit_msg_file = ".git/COMMIT_EDITMSG" |
32 | 14 |
|
33 | | -# Optional: Define specific commit types and their impact on version bumping/changelog sections. |
34 | | -# See https://commitizen-tools.github.io/commitizen/getting_started/#setting-the-cz-config |
35 | | -# The default types are usually sufficient (feat, fix, breaking changes, etc.) but can be customized. |
36 | | -# [tool.commitizen.commit_types] |
37 | | -# feat = { description = "A new feature", section = "Features" } |
38 | | -# fix = { description = "A bug fix", section = "Bug Fixes" } |
39 | | -# chore = { description = "Build process or auxiliary tool changes", hidden = true } |
40 | | - |
41 | | - |
42 | | -# Optional: Configuration for Git host integrations (e.g., creating GitHub releases). |
43 | | -# See https://commitizen-tools.github.io/commitizen/changelog/#git-host-configuration |
44 | 15 | [tool.commitizen.github] |
45 | | -release = true # Enable GitHub release creation |
46 | | -release_asset_path = "dist/*" # Attach build artifacts from the 'dist' directory |
| 16 | +release = true |
| 17 | +release_asset_path = "dist/*" |
47 | 18 | release_asset_descriptions = { "*.tar.gz": "Source distribution", "*.whl": "Python Wheel" } |
48 | | -base_url = "https://github.com/{{ cookiecutter.github_username | lower | replace(' ', '-') }}/{{ cookiecutter.project_slug.replace('_', '-') }}" # Your repo URL |
| 19 | +base_url = "https://github.com/{{ cookiecutter.github_username | lower | replace(' ', '-') }}/{{ cookiecutter.project_slug.replace('_', '-') }}" |
0 commit comments