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 15, 2024
1 parent 996bfd4 commit 0f870d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
6 changes: 3 additions & 3 deletions meta_package_manager/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,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 in pool.all_manager_ids
), f"unrecognized single manager selector {param.name!r}"
assert manager_id in pool.all_manager_ids, (
f"unrecognized single manager selector {param.name!r}"
)

# Normalize the value to a boolean.
if isinstance(value, str):
Expand Down
14 changes: 6 additions & 8 deletions tests/test_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,12 @@ def test_changelog():

entry_pattern = re.compile(r"^- \\\[(?P<category>[a-z0-9,\-]+)\\\] (?P<entry>.+)")

allowed_categories = set(
(
*pool.all_manager_ids,
*(p.id for p in MAIN_PLATFORMS),
"mpm",
"bar-plugin",
)
)
allowed_categories = set((
*pool.all_manager_ids,
*(p.id for p in MAIN_PLATFORMS),
"mpm",
"bar-plugin",
))

for line in content.splitlines():
if line.startswith("-"):
Expand Down

0 comments on commit 0f870d8

Please sign in to comment.