Skip to content

build: manage the development environment with uv and commit uv.lock - #94

Merged
stephen-masters merged 1 commit into
mainfrom
build/uv-lockfile
Nov 2, 2026
Merged

stephen-masters merged 1 commit into
mainfrom
build/uv-lockfile

Conversation

@stephen-masters

Copy link
Copy Markdown
Contributor

Summary

  • Commit uv.lock, regenerated from the current pyproject.toml (it picks up the sillybos>=4,<5 floor). It resolves every extra, torch and PaddlePaddle included.
  • CI gains a Lockfile is current job (uv lock --check), and Lefthook runs the same check whenever pyproject.toml or uv.lock is staged.
  • Trivy now scans the lock, so the Python scan sees resolved versions rather than ranges. A local run with CI's flags is clean.
  • Dependabot enrols the uv ecosystem, weekly, grouped into one PR, with the build prefix.
  • Setup instructions in AGENTS.md, CONTRIBUTING.md, README.md and docs/installation.md, and the devcontainer's setup.sh, move to uv sync --extra dev.

Same arrangement as tetrak-aggregator, tetrak-translit and sillybos. The CI test jobs and the Cloudflare docs build still install with pip, deliberately: the declared ranges keep being exercised, and the Docs workflow mirrors the Cloudflare build command.

Test plan

  • actionlint, lefthook validate, YAML parse of dependabot.yml, bash -n setup.sh
  • uv lock --check
  • uv sync --extra dev --locked into a fresh environment, then pytest -m "not slow": 503 passed; the 3 failures are the pre-existing Vision tests that assume ocrmac on macOS
  • trivy fs with CI's flags: 0 findings in uv.lock
  • npm run lint:markdown
  • Consider adding Lockfile is current to the required status checks on main

🤖 Generated with Claude Code

The lockfile resolves every extra, so Trivy scans real versions instead of
pyproject.toml's ranges, Dependabot bumps it weekly in one grouped PR, and
a `uv lock --check` job in CI and the pre-commit hook refuse a stale one.
The setup instructions, the devcontainer and the Sphinx note move to
`uv sync`; CI still installs the tests with pip so the declared ranges are
exercised too, as in the sibling repositories.

Co-authored-by: Yvette Mankerian <yvettekm@gmail.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying tetrak with  Cloudflare Pages  Cloudflare Pages

Latest commit: 40d0ee2
Status: ✅  Deploy successful!
Preview URL: https://332c8f7a.tetrak.pages.dev
Branch Preview URL: https://build-uv-lockfile.tetrak.pages.dev

View logs

@stephen-masters
stephen-masters merged commit 06fe40e into main Nov 2, 2026
9 checks passed
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