Skip to content

chore(lint): apply py312 pyupgrade fixes to seo_manager and drop the temporary ignores - #47

Merged
joepetjr merged 1 commit into
mainfrom
chore/ruff-py312-upgrade
Oct 24, 2026
Merged

joepetjr merged 1 commit into
mainfrom
chore/ruff-py312-upgrade

Conversation

@joepetjr

Copy link
Copy Markdown
Contributor

Why

#44 moved Waypost to Python 3.12 and left a temporary per-file-ignores entry in pyproject.toml so the move stayed small: "seo_manager/**/*.py" = ["UP006","UP007","UP017","UP035","UP045","B905","I001"]. This PR applies those fixes and deletes the entry and its comment.

Change

  • ruff check seo_manager --fix: 811 safe fixes (List/Dict/Optional/Union to builtin and X | None forms, datetime.UTC, collections.abc imports, import sorting).
  • B905: 8 zip() calls get strict=False, which keeps today's behaviour (no new length check).
  • seo_manager/analytics/final_text_surfaces.py: the Part type alias is now PlaceLine | TemplateBlock | Chapter | Tag | ParamBlock.
  • ruff format seo_manager on the 13 touched files.

49 files, +677/-705 (net -28). No behaviour change intended.

Tests

  • Ruff at CI's pin (ci/tools-requirements.txt, 0.15.22): ruff check . clean, ruff format --check . clean (172 files).
  • Full suite: 1477 passed, 19 xfailed, 2 xpassed, 0 failed; coverage 88.38% (floor 66%).

@joepetjr joepetjr added the needs-operator Autoland hard-denied this PR; human merge required label Oct 24, 2026
@joepetjr

Copy link
Copy Markdown
Contributor Author

Hard-denied (hard-deny: protected path family) and ready to merge -- all checks green.

Offending paths:

  • pyproject.toml
  • seo_manager/youtube/uploader.py

Human merge:
sudo gh-merge-approved 47 --repo Back-Road-Creative/waypost --wait --yes

@joepetjr
joepetjr merged commit 94e6644 into main Oct 24, 2026
4 checks passed
@joepetjr
joepetjr deleted the chore/ruff-py312-upgrade branch October 24, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-operator Autoland hard-denied this PR; human merge required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant