Add CI workflows and lock ruff in dev dependencies#6
Merged
Conversation
Add `lint.yml` (ruff format/lint, `pyproject.toml` validation, scriv fragment check), `tests.yml` (pytest matrix, Python 3.10–3.14), and `prepare-release.yml` (`scriv collect` → branch → PR). Switch `.ci/gate` from `uvx ruff` to `uv run --locked --group dev ruff` so local and CI paths use the same pinned version. Co-authored-by: AI <ai@sderev.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.
What changed
lint.yml: Ruff format/lint check,pyproject.tomlvalidation, and Scriv fragment validation on push/PR tomain.tests.yml: pytest matrix across Python 3.10–3.14 on push/PR tomain.prepare-release.yml:workflow_dispatchthat runsscriv collect, pushes arelease-prep/branch, and opens or updates a PR instead of pushing an unsigned automation commit to protectedmain..ci/gatefromuvx rufftouv run --locked --group dev ruff.ruff==0.15.8in dev dependencies and add repo-local Ruff config.Why
gate.mainis branch-protected, so release prep should happen through a reviewable PR instead of a direct automation push.How to test
gatelocally.LintandTestsworkflows pass.prepare-releasewith a test version on a non-protected branch and verify it creates or updates a PR with the collected changelog.Risk/comp notes
gatenow expects Ruff in the dev environment, viauv sync --group dev.prepare-releaseforce-pushes only its ephemeralrelease-prep/<base>/v<version>branch.Changelog fragment: no (CI/tooling only)