Skip to content

docs: fix the service-yaml-check invocation path and stale rev pins - #6

Merged
blairham merged 1 commit into
mainfrom
docs/accuracy-sweep
Aug 17, 2026
Merged

docs: fix the service-yaml-check invocation path and stale rev pins#6
blairham merged 1 commit into
mainfrom
docs/accuracy-sweep

Conversation

@blairham

Copy link
Copy Markdown
Contributor

Why

The README told readers to invoke service-yaml-check by calling hooks/service-yaml-check.py <paths> directly. There is no such file — the Python hooks ship as console scripts under pinpredict_hooks/. That's the same regression this README explicitly warns about two sections down ("Python hooks must be console scripts"), documented into the usage instructions.

The rev: examples were also a release behind: three of them pinned v0.3.0/v0.2.0 against a repo tagged v0.4.0.

What changed

  • service-yaml-check invocation now points at the console script (pinpredict_hooks/service_yaml_check.py), says plainly that there is no hooks/service-yaml-check.py to run, and links the packaging rule under Repository layout so the two stay connected.
  • rev: examples bumped to v0.4.0 in all three places, plus a single statement of the current release so future bumps have one home.
  • Releasing now says to bump the version in pyproject.toml in the same PR as the hook change, then cut the matching tag — and explains the failure mode: language: python pip-installs this repo, so a tag cut without the bump ships a package whose self-reported version disagrees with the rev: it came from, which is invisible until someone checks.
  • csharpier-worktree-guard: notes that no repo currently consumes it, so changes to it are unexercised in practice.
  • Repository layout gains the .github/workflows/ci.yml row (unit tests plus the hook-install job that exercises the pre-commit install path).

Reviewer note — not fixed here

pyproject.toml still declares version = "0.3.0" while the repo is tagged v0.4.0. That's precisely the drift the new Releasing section warns about, and it's live right now. I've left it alone rather than bump a version in a docs-only PR — worth a follow-up that either corrects pyproject.toml to 0.4.0 or cuts v0.5.0 with the two in lockstep.

Docs only — no hook behavior changes.

The README told readers to call `hooks/service-yaml-check.py <paths>` directly.
That file does not exist — the Python hooks ship as console scripts under
`pinpredict_hooks/`, which is exactly the regression the same README warns
about two sections later.

- Point the out-of-pre-commit invocation at the `service-yaml-check` console
  script, and cross-link the packaging rule in Repository layout.
- Bump the three `rev:` examples to v0.4.0; they were showing v0.3.0 and
  v0.2.0 against a repo tagged v0.4.0, and state the current release once so
  it has a single home.
- Make Releasing say to bump `pyproject.toml` in the same PR as the hook
  change, and explain why: `language: python` pip-installs the package, so a
  tag cut without the bump ships a self-reported version that disagrees with
  the `rev:` it came from.
- Note that no repo currently consumes csharpier-worktree-guard, so changes to
  it are unexercised in practice.
- Add the CI workflow to the Repository layout table.
@blairham
blairham merged commit f5bee4e into main Aug 17, 2026
3 checks passed
@blairham
blairham deleted the docs/accuracy-sweep branch August 17, 2026 00:18
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