Fix ruff config: consolidate into pyproject.toml (#4755)

Co-authored-by: Suchintan Singh <suchintan@skyvern.com>
This commit is contained in:
Suchintan
2026-02-14 23:57:37 -05:00
committed by GitHub
parent 757e859c7c
commit b1e5eb9268
12 changed files with 435 additions and 828 deletions

View File

@@ -2571,7 +2571,11 @@ async def generate_workflow_script_python_code(
except Exception as e:
LOG.error("Failed to create for_loop script block", error=str(e), exc_info=True)
append_block_code(block_code)
# NOTE: Do NOT call append_block_code() for for_loop blocks.
# Unlike task blocks (which produce function definitions valid at module level),
# for_loop blocks produce bare `async for` statements that cause SyntaxError
# at module level ("async for outside async function"). The for-loop code is
# already correctly inlined inside run_workflow() via _build_block_statement().
# --- preserve cached blocks from unexecuted branches ----------------
# When a workflow has conditional blocks, not all branches execute in a single run.