Skip to content

Commit acec0de

Browse files
committed
style: apply ruff format
Reflow lines flagged by 'ruff format --check' in CI.
1 parent acec0de commit acec0de

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/apt_package_function/create_resources.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ def main() -> None:
7676
if args.gpg_key:
7777
gpg_private_key = load_private_key(args.gpg_key)
7878
elif args.autogenerate_gpg_key:
79-
gpg_private_key = generate_private_key(f"apt-package-function {args.resource_group}")
79+
gpg_private_key = generate_private_key(
80+
f"apt-package-function {args.resource_group}"
81+
)
8082
if gpg_private_key:
8183
gpg_public_key = public_key_from_private(gpg_private_key)
8284

@@ -132,9 +134,7 @@ def main() -> None:
132134
# Build the apt sources line. When signing is enabled apt verifies against
133135
# the published public key; otherwise the repository is trusted blindly.
134136
keyring = f"/etc/apt/keyrings/{storage_account}.asc"
135-
repo_url = (
136-
f"blob://{storage_account}.blob.core.windows.net/{package_container} /"
137-
)
137+
repo_url = f"blob://{storage_account}.blob.core.windows.net/{package_container} /"
138138
options = f"signed-by={keyring}" if signing_enabled else "trusted=yes"
139139
apt_sources = f"deb [{options}] {repo_url}"
140140

src/apt_package_function/func_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def deploy(self) -> None:
165165

166166
# Pass the token via the environment so it never appears in the logged
167167
# command line or the container's process arguments.
168-
func_cmd = f"func azure functionapp publish {self.name} --python --build remote --access-token \"$FUNC_ACCESS_TOKEN\""
168+
func_cmd = f'func azure functionapp publish {self.name} --python --build remote --access-token "$FUNC_ACCESS_TOKEN"'
169169
if self.subscription:
170170
func_cmd += f" --subscription {self.subscription}"
171171

0 commit comments

Comments
 (0)