diff --git a/meta_package_manager/cli.py b/meta_package_manager/cli.py index 1d8fba5a9..d775488ba 100644 --- a/meta_package_manager/cli.py +++ b/meta_package_manager/cli.py @@ -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): diff --git a/tests/test_docs.py b/tests/test_docs.py index afcf2a74e..fb497dc8a 100644 --- a/tests/test_docs.py +++ b/tests/test_docs.py @@ -96,14 +96,12 @@ def test_changelog(): entry_pattern = re.compile(r"^- \\\[(?P[a-z0-9,\-]+)\\\] (?P.+)") - 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("-"):