Skip to content

Use pre-commit-update in pre-commit dependency update workflow#292

Merged
xylar merged 3 commits into
mainfrom
copilot/use-pre-commit-update
May 13, 2026
Merged

Use pre-commit-update in pre-commit dependency update workflow#292
xylar merged 3 commits into
mainfrom
copilot/use-pre-commit-update

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 13, 2026

This updates the pre-commit dependency refresh workflow to avoid selecting non-release hook revisions. The workflow now uses pre-commit-update instead of pre-commit autoupdate, matching the intended update policy.

  • Workflow command change

    • Replaced the update command in .github/workflows/pre_commit_update_workflow.yml:
      • pre-commit autoupdatepre-commit-update
    • Added a short inline note documenting why the command differs.
  • Tooling install update

    • Updated the install step to include both tools required by the workflow:
      • pip install pre-commit pre-commit-update

Example of the effective workflow change:

- name: Install pre-commit and pre-commit-update
  run: pip install pre-commit pre-commit-update

# pre-commit-update doesn't try to include non-release versions
pre-commit-update

Fixes #291

Copilot AI linked an issue May 13, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Update pre-commit dependencies workflow to use pre-commit-update Use pre-commit-update in pre-commit dependency update workflow May 13, 2026
Copilot finished work on behalf of xylar May 13, 2026 13:58
Copilot AI requested a review from xylar May 13, 2026 13:58
@xylar xylar marked this pull request as ready for review May 13, 2026 13:58
@xylar xylar merged commit 0711705 into main May 13, 2026
7 checks passed
@xylar xylar deleted the copilot/use-pre-commit-update branch May 13, 2026 13:58
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.

Use pre-commit-update to update pre-commit dependencies

2 participants