Skip to content

Commit

Permalink
[autofix] Format Python
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Nov 14, 2024
1 parent 314e124 commit e155005
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
6 changes: 3 additions & 3 deletions meta_package_manager/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ def update_manager_selection(
# instantiation, we have to reverse the process to get our value.
# Example: --apt-mint => apt_mint => apt-mint
manager_id = param.name.removeprefix("no_").replace("_", "-")
assert (
manager_id == value
), f"unrecognized single manager selector {param.name!r}"
assert manager_id == value, (
f"unrecognized single manager selector {param.name!r}"
)
if param.name.startswith("no_"):
assert isinstance(value, str)
to_remove.add(value)
Expand Down
18 changes: 8 additions & 10 deletions meta_package_manager/sbom.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,16 +145,14 @@ def init_doc(self) -> None:
"""
profile = get_profile()
system_id = self.normalize_spdx_id(
"-".join(
(
current_os().name,
profile["linux_dist_name"],
profile["linux_dist_version"],
profile["uname"]["system"],
profile["uname"]["release"],
profile["uname"]["machine"],
)
)
"-".join((
current_os().name,
profile["linux_dist_name"],
profile["linux_dist_version"],
profile["uname"]["system"],
profile["uname"]["release"],
profile["uname"]["machine"],
))
)

self.document = Document(
Expand Down

0 comments on commit e155005

Please sign in to comment.