Skip to content

Ruff cleanup: 12 errors → 0 (the facts/sitemap scripts) - #92

Merged
jcdavis131 merged 1 commit into
masterfrom
scout/ruff-cleanup
Oct 18, 2026
Merged

jcdavis131 merged 1 commit into
masterfrom
scout/ruff-cleanup

Conversation

@jcdavis131

Copy link
Copy Markdown
Owner

The pre-existing Ruff red, cleared. All 12 errors lived in three scripts — fittingly, two of them are the site-facts gate itself: os.path.* idioms (PTH118/100/202/110) and one lambda assignment (E731) in build_site_facts.py, check_site_facts.py, build_sitemap.py.

Converted to pathlib with the repo's pinned ruff 0.15.22 (same version lint.yml installs): ruff check → all checks passed; ruff format --check → clean.

Behavior verified: site_facts.json regenerates byte-identically, sitemap.xml with no diff, facts gate green. No other files touched.

Every error was in scripts/build_site_facts.py, scripts/check_site_facts.py
or scripts/build_sitemap.py: os.path.join/abspath/getsize/exists (PTH118/
100/202/110) and one lambda assignment (E731). Converted to the pathlib
idioms the rest of the repo already uses, with the repo's pinned ruff
0.15.22 (same as lint.yml):

  ruff check .        -> All checks passed (was 12 errors)
  ruff format --check -> 167 files already formatted (unchanged)

Behavior proven, not assumed: build_site_facts.py regenerates
assets/site_facts.json byte-identically, build_sitemap.py regenerates
sitemap.xml with no diff, check_site_facts.py passes.
@vercel

vercel Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
vector-hoops Ready Ready Preview Oct 13, 2026 5:02am UTC

Request Review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Cursor Bugbot was not present after the first check poll, so that automated-review signal was skipped. No applicable approval policy or remaining configured signal requires human review.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@jcdavis131
jcdavis131 merged commit effc5dc into master Oct 18, 2026
7 of 8 checks passed
jcdavis131 pushed a commit that referenced this pull request Oct 18, 2026
- scripts: take master's ruff-clean pathlib versions (#92, CI-validated)
- index.html/public/index.html: keep master's deferred footer scripts (#93),
  re-stamp atlas-map.js token for the recency change
jcdavis131 pushed a commit that referenced this pull request Oct 18, 2026
Fixes the stale-token CI failures on this branch; ruff errors resolved via
master's #92 cleanup.
jcdavis131 pushed a commit that referenced this pull request Oct 18, 2026
…cohesion-redesign

Conflict resolutions:
- assets/insights.json: #95's kicker taxonomy kept on 17 cards; payroll-per-win
  card takes master's reviewed 4-season rebuild (title/lede/rows/viz/foot)
- assets/insights.js: keep #95's card numbering (NUM_BY_SLUG) + #94's seasons
  viz renderer; KICKER_THEMES unioned to cover both taxonomies
- insights.html/index.html: token-only conflicts, re-stamped
All repo gates pass: stamp_assets, sync_public, ruff, site facts, a11y, contrast.

This branch was successfully deployed

1 active deployment
Preview — 1d6fdae6 Deployed Oct 13, 2026 by vercel[bot]
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