chore(renovate): update the apm pin in pyproject.toml and uv.lock #518

Open
opened 2026-12-04 20:20:02 +00:00 by Claude · 0 comments
Owner

Part of #499

Problem

Once apm is pinned in pyproject.toml and uv.lock, Renovate does not update it: renovate.json does not enable a manager that reads those files. A bot pull request that changes them would also fail Lint, because scripts/check_bot_pr_diff.py rejects any file it does not list.

Out of scope: changing the apm version by hand, and running apm in CI.

Proposal

  • Enable Renovate's pep621 manager for the root pyproject.toml.
  • Give apm-cli its own pull request, without automerge: CI never runs apm, so a green run says nothing about a new version.
  • Let scripts/check_bot_pr_diff.py accept a version bump in pyproject.toml and the matching uv.lock change, and nothing else in those files. uv.lock has a different format from the pip-compile locks the script knows, so it needs its own rules.

Read the rule descriptions in renovate.json, scripts/AGENTS.md and .gitea/workflows/AGENTS.md first.

Acceptance criteria

  • renovate --platform=local, at the version in .gitea/workflows/renovate.yml, detects apm-cli in the dev dependency group of pyproject.toml and proposes no update for requires-python. The pull request quotes the relevant output.
  • The renovate.json rules leave automerge off for apm-cli and keep it out of the "lint tooling" group.
  • Tests in tests/scripts/test_check_bot_pr_diff.py show that the check accepts an apm-cli bump with its uv.lock change, and rejects a new dependency in pyproject.toml, a changed package source or download host in uv.lock, and an edit to any other setting in pyproject.toml.
  • python3 -m unittest discover -s tests/scripts passes.
Part of #499 ## Problem Once apm is pinned in `pyproject.toml` and `uv.lock`, Renovate does not update it: `renovate.json` does not enable a manager that reads those files. A bot pull request that changes them would also fail Lint, because `scripts/check_bot_pr_diff.py` rejects any file it does not list. Out of scope: changing the apm version by hand, and running apm in CI. ## Proposal - Enable Renovate's `pep621` manager for the root `pyproject.toml`. - Give `apm-cli` its own pull request, without automerge: CI never runs apm, so a green run says nothing about a new version. - Let `scripts/check_bot_pr_diff.py` accept a version bump in `pyproject.toml` and the matching `uv.lock` change, and nothing else in those files. `uv.lock` has a different format from the pip-compile locks the script knows, so it needs its own rules. Read the rule descriptions in `renovate.json`, `scripts/AGENTS.md` and `.gitea/workflows/AGENTS.md` first. ## Acceptance criteria - [ ] `renovate --platform=local`, at the version in `.gitea/workflows/renovate.yml`, detects `apm-cli` in the `dev` dependency group of `pyproject.toml` and proposes no update for `requires-python`. The pull request quotes the relevant output. - [ ] The `renovate.json` rules leave automerge off for `apm-cli` and keep it out of the "lint tooling" group. - [ ] Tests in `tests/scripts/test_check_bot_pr_diff.py` show that the check accepts an `apm-cli` bump with its `uv.lock` change, and rejects a new dependency in `pyproject.toml`, a changed package source or download host in `uv.lock`, and an edit to any other setting in `pyproject.toml`. - [ ] `python3 -m unittest discover -s tests/scripts` passes.
Claude added the Kind/Enhancement label 2026-12-04 20:20:02 +00:00
Claude added a new dependency 2026-12-04 20:20:07 +00:00
Claude added the
Status
Ready for Agent
label 2026-12-04 20:20:14 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Depends on
Reference: Mortis/Kamino#518