Skip to content

Commit e85cb28

Browse files
committed
fix(deprecated): mark deprecate in v5
1 parent 59fd3f5 commit e85cb28

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

commitizen/commands/bump.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def __init__(self, config: BaseConfig, arguments: dict):
8282
if deprecated_version_type:
8383
warnings.warn(
8484
DeprecationWarning(
85-
"`--version-type` parameter is deprecated and will be removed in commitizen 4. "
85+
"`--version-type` parameter is deprecated and will be removed in v5. "
8686
"Please use `--version-scheme` instead"
8787
)
8888
)

commitizen/defaults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def __getattr__(name: str) -> Any:
175175
if name in deprecated_vars:
176176
value, replacement = deprecated_vars[name]
177177
warnings.warn(
178-
f"{name} is deprecated and will be removed in a future version. "
178+
f"{name} is deprecated and will be removed in v5. "
179179
f"Use {replacement} instead.",
180180
DeprecationWarning,
181181
stacklevel=2,

commitizen/version_schemes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def get_version_scheme(settings: Settings, name: str | None = None) -> VersionSc
419419
if deprecated_setting:
420420
warnings.warn(
421421
DeprecationWarning(
422-
"`version_type` setting is deprecated and will be removed in commitizen 4. "
422+
"`version_type` setting is deprecated and will be removed in v5. "
423423
"Please use `version_scheme` instead"
424424
)
425425
)

docs/commands/commit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ cz c -a -- -n # Stage all changes and skip the pre-commit and commit-
4242
```
4343

4444
!!! warning
45-
The `--signoff` option (or `-s`) is now recommended being used with the new syntax: `cz commit -- -s`. The old syntax `cz commit --signoff` is deprecated.
45+
The `--signoff` option (or `-s`) is now recommended being used with the new syntax: `cz commit -- -s`. The old syntax `cz commit --signoff` is deprecated and will be removed in v5.
4646

4747
### Retry
4848

tests/test_defaults.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ def test_getattr_deprecated_vars():
1919
# Verify warning messages
2020
assert len(record) == 7
2121
for warning in record:
22-
assert "is deprecated and will be removed in a future version" in str(
23-
warning.message
24-
)
22+
assert "is deprecated and will be removed" in str(warning.message)
2523

2624

2725
def test_getattr_non_existent():

0 commit comments

Comments
 (0)