Skip to content

Commit

Permalink
reformat following pyhton linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Baudon committed Nov 19, 2024
1 parent 7ef8665 commit 813d113
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
4 changes: 1 addition & 3 deletions nexus_allowlist/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down
4 changes: 1 addition & 3 deletions nexus_allowlist/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 1 addition & 4 deletions nexus_allowlist/nexus.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 813d113

Please sign in to comment.