Skip to content

fix(ci): satisfy stricter ruff rules on PR gate (#232)#254

Merged
miguelgfierro merged 1 commit into
issue-147-pipeline-evolutionfrom
fix-ci-lint-errors
May 28, 2026
Merged

fix(ci): satisfy stricter ruff rules on PR gate (#232)#254
miguelgfierro merged 1 commit into
issue-147-pipeline-evolutionfrom
fix-ci-lint-errors

Conversation

@miguelgfierro
Copy link
Copy Markdown
Contributor

Quick fix for the lint + pre-commit failures on #232.

Three rules that the CI ruff enforces but my local ruff didn't catch:

  • SIM103 in engine.py:_is_send_payload — second if/return pair collapsed into a direct return.
  • F841 in tests/unit/pipeline/test_pipeline_engine_pause_send.py — unused planner variable removed (leftover from an earlier draft of test_single_send_is_treated_as_list_of_one).
  • N817 in the same test file — Pause as P / Send as S renamed to PausePkg / SendPkg (single-letter CamelCase aliases trip the acronym rule).

No behavior change. The 7 tests in that file still pass. Local ruff check . is now clean.

Targets issue-147-pipeline-evolution so #232 picks up the fix on the next CI run.

Three Ruff rules that the project ruff CI enforces but my local ruff
missed (newer CI version):

- SIM103 in engine.py:_is_send_payload — collapse the second if/return
  pair into a direct return.
- F841 in test_pipeline_engine_pause_send.py — remove an unused
  'planner' variable that was leftover from an earlier draft of
  test_single_send_is_treated_as_list_of_one.
- N817 in same test file — rename 'Pause as P' / 'Send as S' to
  'PausePkg'/'SendPkg' (single-letter CamelCase aliases trip the
  acronym rule).

No behavior change. Tests still 7/7 in that file.
@miguelgfierro miguelgfierro merged commit 86663ce into issue-147-pipeline-evolution May 28, 2026
@miguelgfierro miguelgfierro deleted the fix-ci-lint-errors branch May 28, 2026 13:34
ancongui pushed a commit that referenced this pull request May 31, 2026
fix(ci): satisfy stricter ruff rules on PR gate (#232)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant