commitizen 4.2.0__tar.gz → 4.2.1__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.2.0 → commitizen-4.2.1}/PKG-INFO +1 -1
- commitizen-4.2.1/commitizen/__version__.py +1 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/bump.py +11 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/pyproject.toml +71 -2
- commitizen-4.2.0/commitizen/__version__.py +0 -1
- {commitizen-4.2.0 → commitizen-4.2.1}/LICENSE +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/__init__.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/__main__.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/changelog.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/changelog_formats/__init__.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/changelog_formats/asciidoc.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/changelog_formats/base.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/changelog_formats/markdown.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/changelog_formats/restructuredtext.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/changelog_formats/textile.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/cli.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/cmd.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/commands/__init__.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/commands/bump.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/commands/changelog.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/commands/check.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/commands/commit.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/commands/example.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/commands/info.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/commands/init.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/commands/list_cz.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/commands/schema.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/commands/version.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/config/__init__.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/config/base_config.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/config/json_config.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/config/toml_config.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/config/yaml_config.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/cz/__init__.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/cz/base.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/cz/conventional_commits/__init__.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/cz/conventional_commits/conventional_commits.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/cz/conventional_commits/conventional_commits_info.txt +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/cz/customize/__init__.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/cz/customize/customize.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/cz/customize/customize_info.txt +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/cz/exceptions.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/cz/jira/__init__.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/cz/jira/jira.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/cz/jira/jira_info.txt +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/cz/utils.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/defaults.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/exceptions.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/factory.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/git.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/hooks.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/out.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/providers/__init__.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/providers/base_provider.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/providers/cargo_provider.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/providers/commitizen_provider.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/providers/composer_provider.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/providers/npm_provider.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/providers/pep621_provider.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/providers/poetry_provider.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/providers/scm_provider.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/py.typed +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/templates/CHANGELOG.adoc.j2 +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/templates/CHANGELOG.md.j2 +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/templates/CHANGELOG.rst.j2 +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/templates/CHANGELOG.textile.j2 +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/commitizen/version_schemes.py +0 -0
- {commitizen-4.2.0 → commitizen-4.2.1}/docs/README.md +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "4.2.1"
|
|
@@ -4,6 +4,7 @@ import os
|
|
|
4
4
|
import re
|
|
5
5
|
from collections import OrderedDict
|
|
6
6
|
from glob import iglob
|
|
7
|
+
from logging import getLogger
|
|
7
8
|
from string import Template
|
|
8
9
|
from typing import cast
|
|
9
10
|
|
|
@@ -14,6 +15,8 @@ from commitizen.version_schemes import DEFAULT_SCHEME, Increment, Version, Versi
|
|
|
14
15
|
|
|
15
16
|
VERSION_TYPES = [None, PATCH, MINOR, MAJOR]
|
|
16
17
|
|
|
18
|
+
logger = getLogger("commitizen")
|
|
19
|
+
|
|
17
20
|
|
|
18
21
|
def find_increment(
|
|
19
22
|
commits: list[GitCommit], regex: str, increments_map: dict | OrderedDict
|
|
@@ -38,7 +41,15 @@ def find_increment(
|
|
|
38
41
|
new_increment = increments_map[match_pattern]
|
|
39
42
|
break
|
|
40
43
|
|
|
44
|
+
if new_increment is None:
|
|
45
|
+
logger.debug(
|
|
46
|
+
f"no increment needed for '{found_keyword}' in '{message}'"
|
|
47
|
+
)
|
|
48
|
+
|
|
41
49
|
if VERSION_TYPES.index(increment) < VERSION_TYPES.index(new_increment):
|
|
50
|
+
logger.debug(
|
|
51
|
+
f"increment detected is '{new_increment}' due to '{found_keyword}' in '{message}'"
|
|
52
|
+
)
|
|
42
53
|
increment = new_increment
|
|
43
54
|
|
|
44
55
|
if increment == MAJOR:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "commitizen"
|
|
3
|
-
version = "4.2.
|
|
3
|
+
version = "4.2.1"
|
|
4
4
|
description = "Python commitizen client tool"
|
|
5
5
|
authors = [{ name = "Santiago Fraire", email = "santiwilly@gmail.com" }]
|
|
6
6
|
maintainers = [
|
|
@@ -86,7 +86,7 @@ build-backend = "poetry.core.masonry.api"
|
|
|
86
86
|
|
|
87
87
|
|
|
88
88
|
[tool.commitizen]
|
|
89
|
-
version = "4.2.
|
|
89
|
+
version = "4.2.1"
|
|
90
90
|
tag_format = "v$version"
|
|
91
91
|
version_files = [
|
|
92
92
|
"pyproject.toml:version",
|
|
@@ -99,8 +99,12 @@ version_scheme = "pep440"
|
|
|
99
99
|
[tool.poetry]
|
|
100
100
|
packages = [{ include = "commitizen" }, { include = "commitizen/py.typed" }]
|
|
101
101
|
|
|
102
|
+
[tool.poetry.requires-plugins]
|
|
103
|
+
"poethepoet" = ">=0.32.2"
|
|
104
|
+
|
|
102
105
|
[tool.poetry.group.dev.dependencies]
|
|
103
106
|
ipython = "^8.0"
|
|
107
|
+
tox = ">4"
|
|
104
108
|
|
|
105
109
|
[tool.poetry.group.test.dependencies]
|
|
106
110
|
pytest = ">=7.2,<9.0"
|
|
@@ -161,6 +165,20 @@ omit = [
|
|
|
161
165
|
|
|
162
166
|
[tool.pytest.ini_options]
|
|
163
167
|
addopts = "--strict-markers"
|
|
168
|
+
testpaths = [
|
|
169
|
+
"tests/",
|
|
170
|
+
]
|
|
171
|
+
|
|
172
|
+
[tool.tox]
|
|
173
|
+
requires = ["tox>=4.22"]
|
|
174
|
+
env_list = ["3.9", "3.10", "3.11", "3.12", "3.13"]
|
|
175
|
+
|
|
176
|
+
[tool.tox.env_run_base]
|
|
177
|
+
description = "Run tests suite against Python {base_python}"
|
|
178
|
+
skip_install = true
|
|
179
|
+
deps = ["poetry>=2.0"]
|
|
180
|
+
commands_pre = [["poetry", "install", "--only", "main,test"]]
|
|
181
|
+
commands = [["pytest", { replace = "posargs", extend = true}]]
|
|
164
182
|
|
|
165
183
|
[tool.ruff]
|
|
166
184
|
line-length = 88
|
|
@@ -202,3 +220,54 @@ ignore_missing_imports = true
|
|
|
202
220
|
skip = '.git*,*.svg,*.lock'
|
|
203
221
|
check-hidden = true
|
|
204
222
|
ignore-words-list = 'asend'
|
|
223
|
+
|
|
224
|
+
[tool.poe]
|
|
225
|
+
poetry_command = ""
|
|
226
|
+
|
|
227
|
+
[tool.poe.tasks]
|
|
228
|
+
format.help = "Format the code"
|
|
229
|
+
format.sequence = [
|
|
230
|
+
{cmd = "ruff check --fix commitizen tests"},
|
|
231
|
+
{cmd = "ruff format commitizen tests"},
|
|
232
|
+
]
|
|
233
|
+
|
|
234
|
+
lint.help = "Lint the code"
|
|
235
|
+
lint.sequence = [
|
|
236
|
+
{cmd = "ruff check commitizen/ tests/ --fix"},
|
|
237
|
+
{cmd = "mypy commitizen/ tests/"},
|
|
238
|
+
]
|
|
239
|
+
|
|
240
|
+
test.help = "Run the test suite"
|
|
241
|
+
test.cmd = "pytest -n 3 --dist=loadfile"
|
|
242
|
+
|
|
243
|
+
"test:all".help = "Run the test suite on all supported Python versions"
|
|
244
|
+
"test:all".cmd = "tox --parallel"
|
|
245
|
+
|
|
246
|
+
cover.help = "Run the test suite with coverage"
|
|
247
|
+
cover.ref = "test --cov-report term-missing --cov-report=xml:coverage.xml --cov=commitizen"
|
|
248
|
+
|
|
249
|
+
all.help = "Run all tasks"
|
|
250
|
+
all.sequence = [
|
|
251
|
+
"format",
|
|
252
|
+
"lint",
|
|
253
|
+
"cover",
|
|
254
|
+
]
|
|
255
|
+
|
|
256
|
+
"doc:screenshots".help = "Render documentation screeenshots"
|
|
257
|
+
"doc:screenshots".script = "scripts.gen_cli_help_screenshots:gen_cli_help_screenshots"
|
|
258
|
+
|
|
259
|
+
"doc:build".help = "Build the documentation"
|
|
260
|
+
"doc:build".cmd = "mkdocs build"
|
|
261
|
+
|
|
262
|
+
doc.help = "Live documentation server"
|
|
263
|
+
doc.cmd = "mkdocs serve"
|
|
264
|
+
|
|
265
|
+
ci.help = "Run all tasks in CI"
|
|
266
|
+
ci.sequence = [
|
|
267
|
+
{cmd="pre-commit run --all-files"},
|
|
268
|
+
"cover",
|
|
269
|
+
]
|
|
270
|
+
ci.env = {SKIP = "no-commit-to-branch"}
|
|
271
|
+
|
|
272
|
+
setup-pre-commit.help = "Install pre-commit hooks"
|
|
273
|
+
setup-pre-commit.cmd = "pre-commit install"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "4.2.0"
|
|
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
|
{commitizen-4.2.0 → commitizen-4.2.1}/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
|