Skip to content

fix(renovate): centralize pep621 automerge for Python packages#149

Merged
JacobPEvans merged 1 commit intomainfrom
fix/centralize-pep621-automerge
Mar 29, 2026
Merged

fix(renovate): centralize pep621 automerge for Python packages#149
JacobPEvans merged 1 commit intomainfrom
fix/centralize-pep621-automerge

Conversation

@JacobPEvans
Copy link
Copy Markdown
Owner

Summary

  • Adds org-wide automerge rule for pep621-managed Python packages (minor/patch only)
  • Merges the existing pep621 schedule rule with automerge fields (3-day stabilization, squash strategy)
  • All repos extending this preset with pyproject.toml files now get automated Python dependency updates

Motivation

PR JacobPEvans/nix-ai#370 added per-repo automerge overrides for pep621 packages. This belongs in the
shared preset alongside the existing trust rules for GitHub Actions, Terraform, Nix flakes, and PyPI/HuggingFace.

Immediate beneficiaries

  • nix-ai — mlx-server + orchestrator pyproject.toml dependencies
  • python-template — pytest, ruff, mypy, bandit dev dependencies

Test plan

  • Renovate dashboard shows pep621 automerge enabled for nix-ai and python-template
  • Major version updates remain blocked (existing rule)
  • Verify 3-day minimumReleaseAge applies

🤖 Generated with Claude Code

Centralizes the automerge policy for pep621-managed Python dependencies
so all repos extending this preset get minor/patch automerge with 3-day
stabilization. Previously each repo had to add this locally.

Merges the existing pep621 schedule rule with automerge fields.

(claude)
Copilot AI review requested due to automatic review settings March 29, 2026 17:45
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request standardizes dependency management by migrating per-repository automerge overrides into the shared Renovate preset. By centralizing these rules, the organization ensures consistent automated update behavior for all projects utilizing pep621-managed Python dependencies.

Highlights

  • Centralized Automerge Configuration: Enabled automated merging for pep621-managed Python packages at the organization level.
  • Update Strategy: Configured minor and patch updates to automatically merge using a squash strategy after a 3-day stabilization period.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.


The packages update with grace, In the squash merge they find their place. With three days to wait, To seal up their fate, The code keeps a steady, clean pace.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Centralizes Renovate automerge behavior for Python dependencies managed via pep621 (pyproject.toml) across repos using this shared preset.

Changes:

  • Updates the existing pep621 package rule to enable automerge for minor/patch updates only.
  • Adds a 3-day stabilization window (minimumReleaseAge) and enforces squash merges for these updates.
  • Retains the existing twice-weekly schedule for pep621 updates.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JacobPEvans JacobPEvans merged commit 62cebef into main Mar 29, 2026
6 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.

2 participants