Skip to content

Commit

Permalink
chore: Reformatted after Black-update
Browse files Browse the repository at this point in the history
A new black version has new formatting style
  • Loading branch information
carstencodes committed Feb 3, 2024
1 parent 018cd43 commit 44701b0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
14 changes: 7 additions & 7 deletions src/pdm_bump/actions/increment.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ def create_new_version(self) -> Version:
self.current_version
)

next_release: tuple[
NonNegativeInteger, ...
] = self._update_release_version_part(self.release_part)
next_release: tuple[NonNegativeInteger, ...] = (
self._update_release_version_part(self.release_part)
)

if self.remove_non_final_parts:
logger.debug("Removing non-final parts of version")
Expand Down Expand Up @@ -213,7 +213,7 @@ def create_new_version(self) -> Version:
""""""
constructional_args: dict[
str,
Any
Any,
# Using type alias due to line length enforced by black
] = _NFPR._create_new_constructional_args( # noqa: E501 pylint: disable=W0212
self.current_version.release, self.current_version.epoch
Expand Down Expand Up @@ -303,9 +303,9 @@ def create_new_version(self) -> Version:
constructional_args = dataclass_to_dict(Version.default())
if not self.__reset_version:
logger.debug("Current version tuple shall not be reset")
constructional_args[
"release_tuple"
] = self.current_version.release
constructional_args["release_tuple"] = (
self.current_version.release
)

logger.debug("Incrementing Epoch of version")
constructional_args["epoch"] = self.current_version.epoch + 1
Expand Down
8 changes: 4 additions & 4 deletions src/pdm_bump/dynamic.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,10 @@ def __set_current_version(self, version: Version) -> None:
current_version = property(__get_current_version, __set_current_version)

def __get_dynamic_version(self) -> DynamicVersionConfig:
dynamic_version: Optional[
DynamicVersionConfig
] = DynamicVersionConfig.find_dynamic_config(
self.__project_root, self.__config
dynamic_version: Optional[DynamicVersionConfig] = (
DynamicVersionConfig.find_dynamic_config(
self.__project_root, self.__config
)
)
if dynamic_version is not None:
dynamic: DynamicVersionConfig = cast(
Expand Down
6 changes: 3 additions & 3 deletions src/pdm_bump/vcs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,9 +413,9 @@ def find_repository_root_by_path(
"""
for _, value in self.items():
factory: VcsProviderFactory = value()
result: Optional[
VcsProvider
] = factory.find_repository_root_from_path(path)
result: Optional[VcsProvider] = (
factory.find_repository_root_from_path(path)
)
if result is not None:
return result

Expand Down
6 changes: 3 additions & 3 deletions src/pdm_bump/vcs/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ class Commit:
_commit_parser: "CommitParser" = field(
init=False, compare=False, hash=False, repr=True
)
commit_parser_factory: InitVar[
Optional[Callable[[], "CommitParser"]]
] = None # NOSONAR
commit_parser_factory: InitVar[Optional[Callable[[], "CommitParser"]]] = (
None # NOSONAR
)

def __post_init__(
self,
Expand Down

0 comments on commit 44701b0

Please sign in to comment.