@@ -101,7 +101,7 @@ def __init__(self, config: BaseConfig, arguments: dict):
101101 )
102102 self .extras = arguments ["extras" ]
103103
104- def is_initial_tag (
104+ def _is_initial_tag (
105105 self , current_tag : git .GitTag | None , is_yes : bool = False
106106 ) -> bool :
107107 """Check if reading the whole git tree up to HEAD is needed."""
@@ -118,7 +118,7 @@ def is_initial_tag(
118118 )
119119 return bool (questionary .confirm ("Is this the first tag created?" ).ask ())
120120
121- def find_increment (self , commits : list [git .GitCommit ]) -> Increment | None :
121+ def _find_increment (self , commits : list [git .GitCommit ]) -> Increment | None :
122122 # Update the bump map to ensure major version doesn't increment.
123123 is_major_version_zero : bool = self .bump_settings ["major_version_zero" ]
124124 # self.cz.bump_map = defaults.bump_map_major_version_zero
@@ -135,7 +135,7 @@ def find_increment(self, commits: list[git.GitCommit]) -> Increment | None:
135135 )
136136 return bump .find_increment (commits , regex = bump_pattern , increments_map = bump_map )
137137
138- def __call__ (self ) -> None : # noqa: C901
138+ def __call__ (self ) -> None :
139139 """Steps executed to bump."""
140140 provider = get_provider (self .config )
141141
@@ -227,7 +227,7 @@ def __call__(self) -> None: # noqa: C901
227227 current_tag , "name" , rules .normalize_tag (current_version )
228228 )
229229
230- is_initial = self .is_initial_tag (current_tag , is_yes )
230+ is_initial = self ._is_initial_tag (current_tag , is_yes )
231231
232232 if manual_version :
233233 try :
@@ -255,7 +255,7 @@ def __call__(self) -> None: # noqa: C901
255255 "[NO_COMMITS_FOUND]\n No new commits found."
256256 )
257257
258- increment = self .find_increment (commits )
258+ increment = self ._find_increment (commits )
259259
260260 # It may happen that there are commits, but they are not eligible
261261 # for an increment, this generates a problem when using prerelease (#281)
0 commit comments