commitizen 4.18.1__tar.gz → 4.19.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {commitizen-4.18.1 → commitizen-4.19.0}/PKG-INFO +1 -1
- commitizen-4.19.0/commitizen/__version__.py +1 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/commands/bump.py +5 -1
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/commands/changelog.py +1 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/commands/version.py +3 -1
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/cz/base.py +46 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/pyproject.toml +1 -2
- {commitizen-4.18.1 → commitizen-4.19.0}/pyproject.toml.orig +1 -2
- commitizen-4.18.1/commitizen/__version__.py +0 -1
- {commitizen-4.18.1 → commitizen-4.19.0}/LICENSE +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/__init__.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/__main__.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/bump.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/changelog.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/changelog_formats/__init__.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/changelog_formats/asciidoc.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/changelog_formats/base.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/changelog_formats/markdown.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/changelog_formats/restructuredtext.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/changelog_formats/textile.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/cli.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/cmd.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/commands/__init__.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/commands/check.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/commands/commit.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/commands/example.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/commands/info.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/commands/init.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/commands/list_cz.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/commands/schema.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/config/__init__.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/config/base_config.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/config/factory.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/config/json_config.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/config/toml_config.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/config/yaml_config.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/cz/__init__.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/cz/conventional_commits/__init__.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/cz/conventional_commits/conventional_commits.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/cz/conventional_commits/conventional_commits_info.txt +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/cz/customize/__init__.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/cz/customize/customize.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/cz/customize/customize_info.txt +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/cz/exceptions.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/cz/jira/__init__.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/cz/jira/jira.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/cz/jira/jira_info.txt +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/cz/utils.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/defaults.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/exceptions.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/factory.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/git.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/hooks.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/out.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/project_info.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/providers/__init__.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/providers/base_provider.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/providers/cargo_provider.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/providers/commitizen_provider.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/providers/composer_provider.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/providers/npm_provider.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/providers/pep621_provider.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/providers/poetry_provider.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/providers/scm_provider.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/providers/uv_provider.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/py.typed +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/question.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/tags.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/templates/CHANGELOG.adoc.j2 +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/templates/CHANGELOG.md.j2 +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/templates/CHANGELOG.rst.j2 +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/templates/CHANGELOG.textile.j2 +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/version_increment.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/commitizen/version_schemes.py +0 -0
- {commitizen-4.18.1 → commitizen-4.19.0}/docs/README.md +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "4.19.0"
|
|
@@ -158,7 +158,11 @@ class Bump:
|
|
|
158
158
|
raise NoPatternMapError(
|
|
159
159
|
f"'{self.config.settings['name']}' rule does not support bump"
|
|
160
160
|
)
|
|
161
|
-
return bump.find_increment(
|
|
161
|
+
return bump.find_increment(
|
|
162
|
+
self.cz.filter_commits_before_bump(commits),
|
|
163
|
+
regex=bump_pattern,
|
|
164
|
+
increments_map=bump_map,
|
|
165
|
+
)
|
|
162
166
|
|
|
163
167
|
def _validate_arguments(self, current_version: VersionProtocol) -> None:
|
|
164
168
|
errors: list[str] = []
|
|
@@ -181,7 +181,9 @@ class Version:
|
|
|
181
181
|
f"'{self.config.settings['name']}' rule does not support bump"
|
|
182
182
|
)
|
|
183
183
|
increment = bump.find_increment(
|
|
184
|
-
commits,
|
|
184
|
+
self.cz.filter_commits_before_bump(commits),
|
|
185
|
+
regex=bump_pattern,
|
|
186
|
+
increments_map=bump_map,
|
|
185
187
|
)
|
|
186
188
|
|
|
187
189
|
# TODO: Consider adding all the parameters `.bump` supports:
|
|
@@ -78,6 +78,52 @@ class BaseCommitizen(metaclass=ABCMeta):
|
|
|
78
78
|
if not self.config.settings.get("style"):
|
|
79
79
|
self.config.settings.update({"style": BaseCommitizen.default_style_config})
|
|
80
80
|
|
|
81
|
+
def filter_commits(self, commits: list[git.GitCommit]) -> list[git.GitCommit]:
|
|
82
|
+
"""Select commits shared by bump and changelog operations.
|
|
83
|
+
|
|
84
|
+
Custom rules can override this method when both operations should use the
|
|
85
|
+
same subset of commits.
|
|
86
|
+
|
|
87
|
+
Args:
|
|
88
|
+
commits: The commits available to the current operation.
|
|
89
|
+
|
|
90
|
+
Returns:
|
|
91
|
+
The commits that the rule considers relevant.
|
|
92
|
+
"""
|
|
93
|
+
return commits
|
|
94
|
+
|
|
95
|
+
def filter_commits_before_bump(
|
|
96
|
+
self, commits: list[git.GitCommit]
|
|
97
|
+
) -> list[git.GitCommit]:
|
|
98
|
+
"""Select commits before calculating a version increment.
|
|
99
|
+
|
|
100
|
+
This operation-specific hook delegates to `filter_commits` so custom rules
|
|
101
|
+
can share filtering by default or override only bump behavior.
|
|
102
|
+
|
|
103
|
+
Args:
|
|
104
|
+
commits: The commits available for bump calculation.
|
|
105
|
+
|
|
106
|
+
Returns:
|
|
107
|
+
The commits that should contribute to the version increment.
|
|
108
|
+
"""
|
|
109
|
+
return self.filter_commits(commits)
|
|
110
|
+
|
|
111
|
+
def filter_commits_before_changelog(
|
|
112
|
+
self, commits: list[git.GitCommit]
|
|
113
|
+
) -> list[git.GitCommit]:
|
|
114
|
+
"""Select commits before generating a changelog.
|
|
115
|
+
|
|
116
|
+
This operation-specific hook delegates to `filter_commits` so custom rules
|
|
117
|
+
can share filtering by default or override only changelog behavior.
|
|
118
|
+
|
|
119
|
+
Args:
|
|
120
|
+
commits: The commits available for changelog generation.
|
|
121
|
+
|
|
122
|
+
Returns:
|
|
123
|
+
The commits that should contribute to the changelog.
|
|
124
|
+
"""
|
|
125
|
+
return self.filter_commits(commits)
|
|
126
|
+
|
|
81
127
|
@abstractmethod
|
|
82
128
|
def questions(self) -> list[CzQuestion]:
|
|
83
129
|
"""Questions regarding the commit message."""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "commitizen"
|
|
3
|
-
version = "4.
|
|
3
|
+
version = "4.19.0"
|
|
4
4
|
description = "Python commitizen client tool"
|
|
5
5
|
license = "MIT"
|
|
6
6
|
license-files = ["LICENSE"]
|
|
@@ -153,7 +153,6 @@ version_provider = "uv"
|
|
|
153
153
|
version_scheme = "pep440"
|
|
154
154
|
annotated_tag = true
|
|
155
155
|
update_changelog_on_bump = true
|
|
156
|
-
changelog_incremental = true
|
|
157
156
|
|
|
158
157
|
[tool.uv.build-backend]
|
|
159
158
|
module-name = "commitizen"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "commitizen"
|
|
3
|
-
version = "4.
|
|
3
|
+
version = "4.19.0"
|
|
4
4
|
description = "Python commitizen client tool"
|
|
5
5
|
authors = [{ name = "Santiago Fraire", email = "santiwilly@gmail.com" }]
|
|
6
6
|
maintainers = [
|
|
@@ -147,7 +147,6 @@ version_provider = "uv"
|
|
|
147
147
|
version_scheme = "pep440"
|
|
148
148
|
annotated_tag = true
|
|
149
149
|
update_changelog_on_bump = true
|
|
150
|
-
changelog_incremental = true
|
|
151
150
|
|
|
152
151
|
[tool.uv.build-backend]
|
|
153
152
|
module-name = "commitizen"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "4.18.1"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{commitizen-4.18.1 → commitizen-4.19.0}/commitizen/cz/conventional_commits/conventional_commits.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|