DEVOPS-1112: Use Dependabot for pre-commit auto-update - #214
Open
RomFloreani wants to merge 3 commits into
Open
Conversation
for more information, see https://pre-commit.ci
Contributor
There was a problem hiding this comment.
Pull request overview
Adds Dependabot support for keeping pre-commit hook revisions up to date, while also adjusting the existing pre-commit.ci autoupdate settings.
Changes:
- Add a new Dependabot update entry for the
pre-commitecosystem (weekly, grouped updates). - Change pre-commit.ci autoupdate target branch to
mainand reduce its frequency to quarterly.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.pre-commit-config.yaml |
Updates pre-commit.ci autoupdate branch and cadence. |
.github/dependabot.yml |
Adds pre-commit ecosystem updates (weekly) with grouping/cooldown configuration. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
6
to
+8
| ci: | ||
| autoupdate_branch: develop | ||
| autoupdate_schedule: monthly | ||
| autoupdate_branch: main | ||
| autoupdate_schedule: quarterly |
Comment on lines
+23
to
+28
| - package-ecosystem: "pre-commit" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "weekly" | ||
| cooldown: | ||
| default-days: 4 |
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
Suppressed comments (2)
.pre-commit-config.yaml:8
- With Dependabot now configured to update the pre-commit ecosystem weekly, leaving pre-commit.ci autoupdates enabled is likely to create duplicate/competing PRs that touch the same
rev:pins in.pre-commit-config.yaml(and can cause merge conflicts or churn). If the intent is to move autoupdates to Dependabot, consider disabling pre-commit.ci autoupdates here.
ci:
autoupdate_branch: main
autoupdate_schedule: quarterly
.github/dependabot.yml:30
- The commented
dependency-nameexample for pre-commit ignores uses an invalid URL (https://github.com/pre-commit/#mirrors-mypy). If someone later uncomments this, Dependabot won’t match the dependency, and the ignore won’t work.
#ignore:
# - dependency-name: "https://github.com/pre-commit/#mirrors-mypy"
groups:
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.
DEVOPS-1112 - use dependabot for pre-commit autoupdate
Automated update of .github/dependabot.yml