From 0712c836e90d85eeae5b9f6123405e723310a1d6 Mon Sep 17 00:00:00 2001 From: Nikita Menkovich Date: Wed, 22 Jan 2025 18:53:39 +0100 Subject: [PATCH] chore: fix flake8 build --- .github/scripts/nebius-manage-vm.py | 2 +- .github/scripts/shell-extractor.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/scripts/nebius-manage-vm.py b/.github/scripts/nebius-manage-vm.py index d5085507e60..8205d7d415a 100644 --- a/.github/scripts/nebius-manage-vm.py +++ b/.github/scripts/nebius-manage-vm.py @@ -374,7 +374,7 @@ def wrapper(sdk: SDK, args: argparse.Namespace) -> callable: logger.info("Next run will be at %s", time.ctime(next_run_time)) while ( time.time() < next_run_time - and time.time() - start_time < total_time_limit + and time.time() - start_time < total_time_limit # noqa: W503 ): time.sleep(1) except Exception as e: diff --git a/.github/scripts/shell-extractor.py b/.github/scripts/shell-extractor.py index b4ff1d1747c..1c061151f5d 100644 --- a/.github/scripts/shell-extractor.py +++ b/.github/scripts/shell-extractor.py @@ -106,6 +106,8 @@ def parse_command_blocks(run_content): def write_runs_to_files(runs, output_dir, prefix): """ + Write run commands to files. + Write each run command to a .sh file with template {action name}-{index inside of action file} in the given output_dir.