commitizen 4.15.1__tar.gz → 4.16.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.15.1 → commitizen-4.16.0}/PKG-INFO +1 -1
- commitizen-4.16.0/commitizen/__version__.py +1 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/cmd.py +40 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/hooks.py +2 -7
- {commitizen-4.15.1 → commitizen-4.16.0}/pyproject.toml +2 -2
- commitizen-4.15.1/commitizen/__version__.py +0 -1
- {commitizen-4.15.1 → commitizen-4.16.0}/LICENSE +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/__init__.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/__main__.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/bump.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/changelog.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/changelog_formats/__init__.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/changelog_formats/asciidoc.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/changelog_formats/base.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/changelog_formats/markdown.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/changelog_formats/restructuredtext.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/changelog_formats/textile.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/cli.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/commands/__init__.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/commands/bump.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/commands/changelog.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/commands/check.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/commands/commit.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/commands/example.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/commands/info.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/commands/init.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/commands/list_cz.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/commands/schema.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/commands/version.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/config/__init__.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/config/base_config.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/config/factory.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/config/json_config.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/config/toml_config.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/config/yaml_config.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/cz/__init__.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/cz/base.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/cz/conventional_commits/__init__.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/cz/conventional_commits/conventional_commits.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/cz/conventional_commits/conventional_commits_info.txt +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/cz/customize/__init__.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/cz/customize/customize.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/cz/customize/customize_info.txt +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/cz/exceptions.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/cz/jira/__init__.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/cz/jira/jira.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/cz/jira/jira_info.txt +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/cz/utils.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/defaults.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/exceptions.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/factory.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/git.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/out.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/project_info.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/providers/__init__.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/providers/base_provider.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/providers/cargo_provider.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/providers/commitizen_provider.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/providers/composer_provider.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/providers/npm_provider.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/providers/pep621_provider.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/providers/poetry_provider.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/providers/scm_provider.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/providers/uv_provider.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/py.typed +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/question.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/tags.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/templates/CHANGELOG.adoc.j2 +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/templates/CHANGELOG.md.j2 +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/templates/CHANGELOG.rst.j2 +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/templates/CHANGELOG.textile.j2 +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/version_increment.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/commitizen/version_schemes.py +0 -0
- {commitizen-4.15.1 → commitizen-4.16.0}/docs/README.md +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "4.16.0"
|
|
@@ -103,3 +103,43 @@ def run_shell(cmd: str, env: Mapping[str, str] | None = None) -> Command:
|
|
|
103
103
|
https://github.com/commitizen-tools/commitizen/issues/1918
|
|
104
104
|
"""
|
|
105
105
|
return _popen(cmd, shell=True, env=env)
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
def run_interactive(
|
|
109
|
+
cmd: str | Sequence[str], env: Mapping[str, str] | None = None
|
|
110
|
+
) -> int:
|
|
111
|
+
"""Run a command safely without shell interpretation and without redirecting stdin, stdout, or stderr
|
|
112
|
+
|
|
113
|
+
Args:
|
|
114
|
+
cmd: The command to run
|
|
115
|
+
env: Extra environment variables to define in the subprocess. Defaults to None.
|
|
116
|
+
|
|
117
|
+
Returns:
|
|
118
|
+
subprocess returncode
|
|
119
|
+
"""
|
|
120
|
+
if env is not None:
|
|
121
|
+
env = {**os.environ, **env}
|
|
122
|
+
if isinstance(cmd, str):
|
|
123
|
+
warnings.warn(
|
|
124
|
+
"Passing a string to cmd.run_interactive() is deprecated and will be removed in v5. "
|
|
125
|
+
"Use a list of arguments instead, or use cmd.run_interactive_shell() explicitly.",
|
|
126
|
+
DeprecationWarning,
|
|
127
|
+
stacklevel=2,
|
|
128
|
+
)
|
|
129
|
+
return subprocess.run(cmd, shell=True, env=env).returncode
|
|
130
|
+
return subprocess.run(cmd, shell=False, env=env).returncode
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
def run_interactive_shell(cmd: str, env: Mapping[str, str] | None = None) -> int:
|
|
134
|
+
"""Run a command without redirecting stdin, stdout, or stderr
|
|
135
|
+
|
|
136
|
+
Args:
|
|
137
|
+
cmd: The command to run
|
|
138
|
+
env: Extra environment variables to define in the subprocess. Defaults to None.
|
|
139
|
+
|
|
140
|
+
Returns:
|
|
141
|
+
subprocess returncode
|
|
142
|
+
"""
|
|
143
|
+
if env is not None:
|
|
144
|
+
env = {**os.environ, **env}
|
|
145
|
+
return subprocess.run(cmd, shell=True, env=env).returncode
|
|
@@ -17,14 +17,9 @@ def run(hooks: str | list[str], _env_prefix: str = "CZ_", **env: object) -> None
|
|
|
17
17
|
for hook in hooks:
|
|
18
18
|
out.info(f"Running hook '{hook}'")
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
return_code = cmd.run_interactive(hook, env=_format_env(_env_prefix, env))
|
|
21
21
|
|
|
22
|
-
if
|
|
23
|
-
out.write(c.out)
|
|
24
|
-
if c.err:
|
|
25
|
-
out.error(c.err)
|
|
26
|
-
|
|
27
|
-
if c.return_code != 0:
|
|
22
|
+
if return_code != 0:
|
|
28
23
|
raise RunHookError(f"Running hook '{hook}' failed")
|
|
29
24
|
|
|
30
25
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "commitizen"
|
|
3
|
-
version = "4.
|
|
3
|
+
version = "4.16.0"
|
|
4
4
|
description = "Python commitizen client tool"
|
|
5
5
|
authors = [{ name = "Santiago Fraire", email = "santiwilly@gmail.com" }]
|
|
6
6
|
maintainers = [
|
|
@@ -97,7 +97,7 @@ dev = [
|
|
|
97
97
|
"tox-uv",
|
|
98
98
|
]
|
|
99
99
|
|
|
100
|
-
base = ["poethepoet>=0.34.0"]
|
|
100
|
+
base = ["mkdocs-llmstxt>=0.5.0", "poethepoet>=0.34.0"]
|
|
101
101
|
|
|
102
102
|
test = [
|
|
103
103
|
"pytest>=9",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "4.15.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.15.1 → commitizen-4.16.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
|