Skip to content

Commit dee1efe

Browse files
committed
fix: change deprecated value and bump versions
1 parent 35196da commit dee1efe

File tree

4 files changed

+724
-619
lines changed

4 files changed

+724
-619
lines changed

commitizen/exceptions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ def from_str(cls, value: str) -> ExitCode:
4949

5050

5151
class CommitizenException(Exception):
52+
exit_code: ExitCode
53+
message: str
54+
5255
def __init__(self, *args: str, **kwargs: Any) -> None:
5356
self.output_method = kwargs.get("output_method") or out.error
5457
self.exit_code: ExitCode = self.__class__.exit_code

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ maintainers = [
88
{ name = "Axel H.", email = "noirbizarre@gmail.com" },
99
{ name = "Tim Hsiung", email = "bear890707@gmail.com" },
1010
]
11-
license = { file = "LICENSE" }
11+
license-files = ["LICENSE"]
1212
readme = "docs/README.md"
1313
requires-python = ">=3.10,<4.0"
1414
dependencies = [
@@ -18,7 +18,7 @@ dependencies = [
1818
"decli (>=0.6.0,<1.0)",
1919
"colorama (>=0.4.1,<1.0)",
2020
"termcolor (>=1.1.0,<4.0.0)",
21-
"packaging>=19",
21+
"packaging>=26",
2222
"tomlkit (>=0.8.0,<1.0.0)",
2323
"jinja2>=2.10.3",
2424
"pyyaml>=3.08",
@@ -45,7 +45,6 @@ classifiers = [
4545
"Programming Language :: Python :: 3.13",
4646
"Programming Language :: Python :: 3.14",
4747
"Programming Language :: Python :: Implementation :: CPython",
48-
"License :: OSI Approved :: MIT License",
4948
]
5049

5150
[project.urls]
@@ -122,7 +121,7 @@ linters = [
122121
]
123122

124123
documentation = [
125-
"mkdocs>=1.4.2",
124+
"mkdocs>=1.4.2,<2",
126125
"mkdocs-git-revision-date-localized-plugin>=1.5.0",
127126
"mkdocs-material>=9.1.6",
128127
]
@@ -133,7 +132,7 @@ script = [
133132
]
134133

135134
[build-system]
136-
requires = ["uv_build >= 0.9.17, <0.10.0"]
135+
requires = ["uv_build >= 0.9.17, <0.12"]
137136
build-backend = "uv_build"
138137

139138

tests/commands/test_bump_command.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -654,9 +654,9 @@ def test_bump_with_git_to_stdout_arg(util: UtilFixture, capsys: pytest.CaptureFi
654654
"--yes",
655655
),
656656
],
657-
ids=lambda cmd_tuple: " ".join(["cz", *cmd_tuple])
658-
if isinstance(cmd_tuple, tuple)
659-
else cmd_tuple,
657+
ids=lambda cmd_tuple: (
658+
" ".join(["cz", *cmd_tuple]) if isinstance(cmd_tuple, tuple) else cmd_tuple
659+
),
660660
)
661661
def test_bump_changelog_command_commits_untracked_changelog_and_version_files(
662662
tmp_commitizen_project,

0 commit comments

Comments
 (0)