Skip to content

Commit c2df766

Browse files
fix ci build error
1 parent aef2004 commit c2df766

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

commitizen/commands/bump.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -332,14 +332,7 @@ def __call__(self) -> None:
332332

333333
changelog_cmd = Changelog(
334334
self.config,
335-
{
336-
"unreleased_version": new_tag_version,
337-
"incremental": True,
338-
"dry_run": dry_run,
339-
"template": self.template,
340-
"extras": self.extras,
341-
"file_name": self.file_name,
342-
},
335+
{**changelog_args, "file_name": self.file_name}, # type: ignore[typeddict-item]
343336
)
344337
changelog_cmd()
345338
changelog_file_name = changelog_cmd.file_name

commitizen/config/base_config.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,6 @@ def contains_commitizen_section(self) -> bool:
2828
"""
2929
raise NotImplementedError()
3030

31-
def contains_commitizen_section(self) -> bool:
32-
"""Check if the config file contains a commitizen section.
33-
34-
The implementation is different for each config file type.
35-
"""
36-
raise NotImplementedError()
37-
3831
@property
3932
def settings(self) -> Settings:
4033
return self._settings
@@ -48,10 +41,6 @@ def mutated_settings(self) -> Settings:
4841
"""
4942
return self._settings_from_configs
5043

51-
@property
52-
def mutated_settings(self) -> Settings:
53-
return self._settings_from_configs
54-
5544
@property
5645
def path(self) -> Path:
5746
return self._path # type: ignore[return-value]

commitizen/config/toml_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,6 @@ def _parse_setting(self, data: bytes | str) -> None:
7070

7171
try:
7272
self.settings.update(doc["tool"]["commitizen"]) # type: ignore[index,typeddict-item] # TODO: fix this
73-
self.mutated_settings.update(doc["tool"]["commitizen"]) # type: ignore
73+
self.mutated_settings.update(doc["tool"]["commitizen"]) # type: ignore[index,typeddict-item]
7474
except exceptions.NonExistentKey:
7575
pass

0 commit comments

Comments
 (0)