Skip to content

Commit 4700eac

Browse files
stefano-garzarellaShadowCurse
authored andcommitted
autogenerate_pipeline.py: fix formatting issues
The last commit made `black` unhappy. Let's fix the formatting issues suggested by `black`. Signed-off-by: Stefano Garzarella <[email protected]>
1 parent 55ee075 commit 4700eac

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.buildkite/autogenerate_pipeline.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585

8686
BUILDKITE_PATH = pathlib.Path(__file__).parent.resolve()
8787

88+
8889
class BuildkiteStep:
8990
"""
9091
This builds a Buildkite step according to a json configuration and the
@@ -246,7 +247,9 @@ def build(self, input):
246247
# Wrap command with '' to avoid escaping early by `ENTRYPOINT`
247248
command = json.dumps(command)
248249
# Overwrite image tag for riscv64 platform CI
249-
self.step_config["plugins"][0][f"docker#{DOCKER_PLUGIN_VERSION}"]["image"] = f"rustvmm/dev:{CONTAINER_VERSION_RISCV}"
250+
self.step_config["plugins"][0][f"docker#{DOCKER_PLUGIN_VERSION}"][
251+
"image"
252+
] = f"rustvmm/dev:{CONTAINER_VERSION_RISCV}"
250253
# Since we are using qemu-system inside a x86_64 container, we
251254
# should set `platform` field to x86_64 and unset the hypervisor to
252255
# be passed
@@ -346,13 +349,14 @@ def determine_allowlist(config_file):
346349
"""Determine the what platforms should be enabled for this crate"""
347350

348351
try:
349-
with open(config_file, 'r') as file:
352+
with open(config_file, "r") as file:
350353
platforms = [line.strip() for line in file.readlines()]
351354
return platforms
352355
except Exception as e:
353356
# Fall back to default platform if anything goes wrong
354357
return ["x86_64", "aarch64"]
355358

359+
356360
def generate_pipeline(config_file, platform_allowlist):
357361
"""Generate the pipeline yaml file from a json configuration file."""
358362

0 commit comments

Comments
 (0)