diff --git a/nexus_allowlist/actions.py b/nexus_allowlist/actions.py index 762568e..bbf595d 100644 --- a/nexus_allowlist/actions.py +++ b/nexus_allowlist/actions.py @@ -215,9 +215,7 @@ def recreate_privileges( nexus_api, name="apt-packages", description="Allow access to 'Packages.gz' file in APT repository", - expression=( - f'format == "apt" and path=~"^/dists/{APT_DISTRO}/.*/Packages.gz"' - ), + expression=f'format == "apt" and path=~"^/dists/{APT_DISTRO}/.*/Packages.gz"', repo_type=_NEXUS_REPOSITORIES["apt_proxy"].repo_type, repo=_NEXUS_REPOSITORIES["apt_proxy"].name, ) diff --git a/nexus_allowlist/cli.py b/nexus_allowlist/cli.py index 092730e..abab00c 100644 --- a/nexus_allowlist/cli.py +++ b/nexus_allowlist/cli.py @@ -79,9 +79,7 @@ def main() -> None: packages_parser.add_argument( "--apt-package-file", type=Path, - help=( - "Path of the file of allowed APT packages, ignored when PACKAGES is all" - ), + help="Path of the file of allowed APT packages, ignored when PACKAGES is all", ) subparsers = parser.add_subparsers(title="subcommands", required=True) diff --git a/nexus_allowlist/nexus.py b/nexus_allowlist/nexus.py index 9d52776..9045052 100644 --- a/nexus_allowlist/nexus.py +++ b/nexus_allowlist/nexus.py @@ -127,10 +127,7 @@ def create_proxy_repository( payload["name"] = name payload["proxy"]["remoteUrl"] = remote_url if repo_type == RepositoryType.APT: - payload["apt"] = { - "distribution": APT_DISTRO, - "flat": False - } + payload["apt"] = {"distribution": APT_DISTRO, "flat": False} logging.info(f"Creating {repo_type.value} repository: {name}") response = requests.post(