Skip to content

bump_map in pyproject.toml seems to be ignored #1728

Description

@JeannotJeannot

Description

bump_map in pyproject.toml seems to be ignored. When I try to set "feat" to patch it still does consider it as a minor increment, and keep ignoring docs as an valid increment.

If I modify bump_pattern then the filter appear correctly so I suppose that the configuration are well read by the parser. The configuration for the changelog is correctly interpreted.

P.S. : Thanks for your work. I think I'm the problem with this issue, but I failed to know how...

Steps to reproduce

  1. Init a repo git (git init & uv init)
  2. Set the pyproject.toml
[project]
name = "error-commitizen"
version = "0.1.0"
description = "Replicate bug in commitizen ignoring pyproject.toml:bump_map configuration"
readme = "README.md"
requires-python = ">=3.14"
dependencies = [
    "commitizen>=4.10.1",
]


[tool.commitizen]
name = "cz_customize"
version_provider = "pep621" # Use version from pyproject.toml
update_changelog_on_bump = true
major_version_zero = true
changelog_incremental = true
version_files = [
    "pyproject.toml:version",
]
allowed_prefixes = [
    "Draft:",
    "Merge",
    "Revert",
    "Pull request",
    "fixup!",
    "squash!",
    "amend!"
]
breaking_change_exclamation_in_title = true
gpg_sign = false
annotated_tag = true


[tool.commitizen.customize]
# Commit message configuration
schema_pattern = "^(feat|fix|ci|chore|refactor|docs|test|perf|build|bump)(\\(#\\d+\\))?(!)?: ([A-Z].*)$"

# Bumping configuration => The bump_map DOES NOT WORK...
bump_pattern = "^(feat|fix|ci|chore|refactor|docs|test|perf|build|bump)"
bump_map = {feat = "PATCH", docs = "PATCH"}
  1. Create following git commits :
Image
  1. Run uv run cz bump --dry-run
Image

Current behavior

A minor increment is operated.

Desired behavior

A patch increment should be operated.

Screenshots

No response

Environment

uv run cz version --report

Commitizen Version: 4.10.1
Python Version: 3.14.2 (main, Dec 9 2025, 19:03:14) [MSC v.1944 64 bit (AMD64)]
Operating System: Windows

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions