Skip to content

Fix ruff lint violations introduced by PR #13 (ar-r82f.22)#16

Merged
atc964 merged 1 commit into
mainfrom
fix/freewheel-lint-violations
May 28, 2026
Merged

Fix ruff lint violations introduced by PR #13 (ar-r82f.22)#16
atc964 merged 1 commit into
mainfrom
fix/freewheel-lint-violations

Conversation

@atc964
Copy link
Copy Markdown
Collaborator

@atc964 atc964 commented May 28, 2026

Summary

Two auto-fixable ruff violations were introduced into main by PR #13 (FreeWheel OAuth PKCE migration). They block the Lint CI job, which in turn blocks PR #15 (the seller CI workflow fix) from reaching its pytest step in verification.

This PR fixes both with ruff check --fix + ruff format:

  • src/ad_seller/clients/freewheel_adapter.pyI001 unsorted imports (alphabetized)
  • src/ad_seller/clients/freewheel_oauth.pyW292 missing trailing newline

ruff format also reflowed two short multi-line calls in freewheel_adapter.py (joined onto single lines under the line-length limit) and re-wrapped one call in freewheel_oauth.py. No logic changes — purely cosmetic.

Why this matters

PR #15 (ar-r82f.16) fixes the seller CI workflow so Polly's QA verification can run pytest. With main's Lint job currently failing, the workflow short-circuits before verification can complete. Merging this restores green Lint on main and unblocks #15's verification path.

Verification

  • uvx ruff check src/ad_seller/clients/freewheel_*.pyAll checks passed!
  • uvx ruff check src/All checks passed!
  • git diff confirms changes are scoped to the 2 freewheel files only (16 line changes total)

Test plan

  • CI Lint job: SUCCESS (target — was failing on main before this PR)
  • CI Test job: may still fail due to ongoing shutdown-hang in seller CI (ar-r82f.16, separate issue) — not this PR's concern

Auto-fixed two ruff violations introduced by PR #13:
- freewheel_adapter.py: I001 unsorted imports (alphabetized)
- freewheel_oauth.py: W292 missing trailing newline

Also ran `ruff format` on both files for consistency; this reflowed
two short multi-line calls in freewheel_adapter.py and re-wrapped one
call in freewheel_oauth.py. No logic changes.

Unblocks PR #15 (ar-r82f.16) — seller CI workflow fix needs main's
Lint job to pass so verification can reach pytest.

bead: ar-r82f.22

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@atc964 atc964 merged commit a74a80b into main May 28, 2026
2 checks passed
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