Repository navigation
feat(template): add uv validation contract via scripts/check.sh - #28
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a uv validation contract to the template: every repo validates with one command,
bash scripts/check.sh, which installs fromuv.lockand which CI runs unchanged. This is step 1 of the uv rollout; the pilot onthe-music-tree-geographyfollows.Issues
N/A
Changes
template/scripts/check.sh.jinja(new, Copier-managed, socopier updatekeeps it current):uv sync --frozen, then pre-commit, then pytest.--frozenfails on a missing or staleuv.lockinstead of re-locking.uv_sync_args(default empty) for extras the checks need, e.g.--extra processing.pyproject.toml.jinja: dev tools move to[dependency-groups] dev(PEP 735). Bootstrap-only file, merged by hand on migration.test.yml:astral-sh/setup-uvthenbash scripts/check.sh. StarterAGENTS.mdnames the command.lint.ymlnow installs with uv and runs pre-commit throughuv run, since the reusable workflow's defaultpip install -e ".[dev]"no longer finds the dev tools.check.shstops with auv lockhint whenuv.lockis missing.migration-guide.md§2 anddevelopment.mddescribe the contract.scripts/tests/agent-template.shchecks thatcheck.shis rendered, executable, and interpolatesuv_sync_args.Test plan
bash scripts/tests/agent-template.sh <check-project-agents.py>: passes.actionlinton the renderedlint.ymland checksuv_sync_argsreaches it.actionlinton itstest.yml: clean.check.shend to end in a rendered project (needs auv.lock); the pilot covers it.Screenshots
N/A
Risk
Change, standard depth: template behavior that downstream repos adopt, no runtime code. Review: one fresh sonnet reviewer found two important issues (lint workflow install, missing-lock hint), both fixed; the fix delta was checked by the principal session only. Not fixed (pre-existing):
pytestexits 5 when a repo has no tests. Existing repos are unaffected until they runcopier update, which addsscripts/check.sh.pyproject.tomlandtest.ymlstay bootstrap-only.How to revert
Revert the merge commit; Release Please publishes the revert as the next release.
Deployment notes
Merging a
featPR starts a Release Please release (minor, 5.3.0). Target branch:main.Post-deploy verification
N/A