commitizen 4.16.1__tar.gz → 4.16.3__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.16.1 → commitizen-4.16.3}/PKG-INFO +1 -1
- commitizen-4.16.3/commitizen/__version__.py +1 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/commands/check.py +6 -1
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/defaults.py +11 -2
- {commitizen-4.16.1 → commitizen-4.16.3}/pyproject.toml +1 -1
- commitizen-4.16.1/commitizen/__version__.py +0 -1
- {commitizen-4.16.1 → commitizen-4.16.3}/LICENSE +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/__init__.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/__main__.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/bump.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/changelog.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/changelog_formats/__init__.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/changelog_formats/asciidoc.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/changelog_formats/base.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/changelog_formats/markdown.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/changelog_formats/restructuredtext.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/changelog_formats/textile.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/cli.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/cmd.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/commands/__init__.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/commands/bump.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/commands/changelog.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/commands/commit.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/commands/example.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/commands/info.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/commands/init.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/commands/list_cz.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/commands/schema.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/commands/version.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/config/__init__.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/config/base_config.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/config/factory.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/config/json_config.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/config/toml_config.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/config/yaml_config.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/cz/__init__.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/cz/base.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/cz/conventional_commits/__init__.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/cz/conventional_commits/conventional_commits.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/cz/conventional_commits/conventional_commits_info.txt +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/cz/customize/__init__.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/cz/customize/customize.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/cz/customize/customize_info.txt +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/cz/exceptions.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/cz/jira/__init__.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/cz/jira/jira.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/cz/jira/jira_info.txt +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/cz/utils.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/exceptions.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/factory.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/git.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/hooks.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/out.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/project_info.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/providers/__init__.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/providers/base_provider.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/providers/cargo_provider.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/providers/commitizen_provider.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/providers/composer_provider.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/providers/npm_provider.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/providers/pep621_provider.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/providers/poetry_provider.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/providers/scm_provider.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/providers/uv_provider.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/py.typed +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/question.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/tags.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/templates/CHANGELOG.adoc.j2 +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/templates/CHANGELOG.md.j2 +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/templates/CHANGELOG.rst.j2 +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/templates/CHANGELOG.textile.j2 +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/version_increment.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/commitizen/version_schemes.py +0 -0
- {commitizen-4.16.1 → commitizen-4.16.3}/docs/README.md +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "4.16.3"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
+
import os
|
|
3
4
|
import re
|
|
4
5
|
import sys
|
|
5
6
|
from pathlib import Path
|
|
@@ -40,7 +41,11 @@ class Check:
|
|
|
40
41
|
"""
|
|
41
42
|
self.commit_msg_file = arguments.get("commit_msg_file")
|
|
42
43
|
self.commit_msg = arguments.get("message")
|
|
43
|
-
|
|
44
|
+
rev_range = arguments.get("rev_range")
|
|
45
|
+
# Expand env vars so the packaged ``commitizen-branch`` pre-push hook
|
|
46
|
+
# (which passes the literal ``$PRE_COMMIT_FROM_REF..$PRE_COMMIT_TO_REF``)
|
|
47
|
+
# keeps working after the ``shell=False`` switch in #1941. See #2003.
|
|
48
|
+
self.rev_range = os.path.expandvars(rev_range) if rev_range else rev_range
|
|
44
49
|
self.allow_abort = bool(
|
|
45
50
|
arguments.get("allow_abort", config.settings["allow_abort"])
|
|
46
51
|
)
|
|
@@ -156,8 +156,17 @@ def get_tag_regexes(
|
|
|
156
156
|
"major": r"(?P<major>\d+)",
|
|
157
157
|
"minor": r"(?P<minor>\d+)",
|
|
158
158
|
"patch": r"(?P<patch>\d+)",
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
# Allow ``\w+`` (PEP-440 ``rc0``) as well as ``\w+\.\w+(\.\w+)*``
|
|
160
|
+
# (SemVer2 ``rc.0``, ``alpha.beta.1``). The original ``\w+\d+`` only
|
|
161
|
+
# matched the PEP-440 form and produced "Invalid version tag" warnings
|
|
162
|
+
# for SemVer2-style tags created by commitizen itself (#1614).
|
|
163
|
+
"prerelease": r"(?P<prerelease>\w+(?:\.\w+)*)?",
|
|
164
|
+
# Match either ``.dev1`` (PEP-440 with leading dot) or ``dev1``
|
|
165
|
+
# (SemVer / SemVer2 / users substituting ``${devrelease}`` directly
|
|
166
|
+
# in a ``tag_format`` -- see #1615). A bare ``\d+`` after the prefix
|
|
167
|
+
# would let the regex match arbitrary numeric suffixes, so the
|
|
168
|
+
# ``dev`` literal is required.
|
|
169
|
+
"devrelease": r"(?P<devrelease>\.?dev\d+)?",
|
|
161
170
|
}
|
|
162
171
|
return {
|
|
163
172
|
**{f"${k}": v for k, v in regexes.items()},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "4.16.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{commitizen-4.16.1 → commitizen-4.16.3}/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
|