From 4881d19237df9e5dfcb3ef19ba9776aed02fd5e4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 17 Dec 2024 17:44:10 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- buildtest/cli/build.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/buildtest/cli/build.py b/buildtest/cli/build.py index 0184123c3..2a0485552 100644 --- a/buildtest/cli/build.py +++ b/buildtest/cli/build.py @@ -153,10 +153,12 @@ def discover_buildspecs( ) cache = load_json(BUILDSPEC_CACHE_FILE) - + # get file_traversal_limit from the config if site_config and site_config.target_config: - file_traversal_limit = site_config.target_config.get("file_traversal_limit", 1000) + file_traversal_limit = site_config.target_config.get( + "file_traversal_limit", 1000 + ) else: file_traversal_limit = 1000 @@ -556,7 +558,9 @@ def discover_by_buildspecs(buildspec: str, file_traversal_limit: int) -> list: logger.debug( f"Buildspec File: {buildspec} is a directory so traversing directory tree to find all Buildspec files with .yml extension" ) - buildspecs = walk_tree(buildspec, ".yml", file_traverse_limit=file_traversal_limit) + buildspecs = walk_tree( + buildspec, ".yml", file_traverse_limit=file_traversal_limit + ) elif os.path.isfile(buildspec): # if buildspec doesn't end in .yml extension we print message and return None if not re.search(".yml$", buildspec):