From 94e2492e364d63ef019c10df7f5910466ea7fe9b Mon Sep 17 00:00:00 2001 From: Stefano Garzarella Date: Wed, 25 Feb 2026 10:46:36 +0100 Subject: [PATCH] chore: fix formatting issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New `black` is complaining about reformatting some of our files, let's make it happy: $ black . --check would reformat rust-vmm-ci/test_run.py would reformat rust-vmm-ci/integration_tests/conftest.py would reformat rust-vmm-ci/.buildkite/autogenerate_pipeline.py Oh no! 💥 💔 💥 3 files would be reformatted, 5 files would be left unchanged. Signed-off-by: Stefano Garzarella --- .buildkite/autogenerate_pipeline.py | 6 ++---- integration_tests/conftest.py | 1 - test_run.py | 6 ++---- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.buildkite/autogenerate_pipeline.py b/.buildkite/autogenerate_pipeline.py index bf0a9e9..e0001a2 100755 --- a/.buildkite/autogenerate_pipeline.py +++ b/.buildkite/autogenerate_pipeline.py @@ -370,8 +370,7 @@ def generate_pipeline(config_file, platform_allowlist): if __name__ == "__main__": - help_text = dedent( - """ + help_text = dedent(""" This script supports overriding the following configurations through environment variables: - X86_LINUX_AGENT_TAGS: overrides the tags by which the x86_64 linux @@ -383,8 +382,7 @@ if __name__ == "__main__": https://github.com/buildkite-plugins/docker-buildkite-plugin. - TESTS_TO_SKIP: specifies a list of tests to be skipped. - TIMEOUTS_MIN: overrides the timeout value for specific tests. - """ - ) + """) parser = ArgumentParser(description=help_text, formatter_class=RawTextHelpFormatter) # By default we're generating the rust-vmm-ci pipeline with the test # configuration committed to this repository. diff --git a/integration_tests/conftest.py b/integration_tests/conftest.py index 32f7180..cf389ce 100644 --- a/integration_tests/conftest.py +++ b/integration_tests/conftest.py @@ -2,7 +2,6 @@ # SPDX-License-Identifier: Apache-2.0 import pytest - PROFILE_CI = "ci" PROFILE_DEVEL = "devel" diff --git a/test_run.py b/test_run.py index 86a8810..1556ab5 100755 --- a/test_run.py +++ b/test_run.py @@ -33,16 +33,14 @@ def retrieve_test_list(config_file=f"{PARENT_DIR}/.buildkite/test_description.js if __name__ == "__main__": - help_text = dedent( - """ + help_text = dedent(""" This script allows running all the tests at once on the local machine. The tests "test_benchmark.py" and "test_commit_format.py" work properly on the local machine only when the environment variables REMOTE and BASE_BRANCH are set. Otherwise the default values are "origin" for the remote name of the upstream repository and "main" for the name of the base branch, and these tests may not work as expected. - """ - ) + """) parser = ArgumentParser(description=help_text, formatter_class=RawTextHelpFormatter) parser.parse_args()