Skip to content

chore: bump pre-commit hooks versions#3050

Merged
robfrank merged 1 commit intomainfrom
chore/pre-commit-update
Dec 19, 2025
Merged

chore: bump pre-commit hooks versions#3050
robfrank merged 1 commit intomainfrom
chore/pre-commit-update

Conversation

@robfrank
Copy link
Collaborator

upgrade pre-commit hooks

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @robfrank, 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 focuses on maintaining code quality and consistency by upgrading the versions of various pre-commit hooks. By bumping these dependencies, the project benefits from the latest bug fixes, performance enhancements, and new features offered by these formatting and linting tools, ensuring a more robust and efficient development workflow.

Highlights

  • Pre-commit Hook Version Bumps: Updated the versions for several pre-commit hooks, including gruntwork-io/pre-commit, pre-commit/pre-commit-hooks, black, isort, language-formatters-pre-commit-hooks, shfmt, and prettier. This also involved a change in the mirrors-prettier repository source.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

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.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

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
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request aims to update pre-commit hook versions. While keeping dependencies up-to-date is a great practice, and the change of the prettier mirror is correct as the old one is archived, several of the updated versions specified in .pre-commit-config.yaml do not exist in their respective repositories or package registries. This will cause pre-commit to fail during installation. I've left specific comments with suggestions for the latest valid versions. Please review them and update the configuration accordingly. Note that two of the updates (gruntwork-io/pre-commit and macisamuele/language-formatters-pre-commit-hooks) are correct as the versions exist.

- id: helmlint
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
Copy link
Contributor

Choose a reason for hiding this comment

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

critical

The specified revision v6.0.0 for pre-commit/pre-commit-hooks does not appear to be a valid tag in the repository. The latest available version is v4.6.0. Using a non-existent revision will cause pre-commit to fail. Please use a valid version.

    rev: v4.6.0

- id: check-xml
- repo: https://github.com/psf/black
rev: 24.10.0
rev: 25.12.0
Copy link
Contributor

Choose a reason for hiding this comment

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

critical

The specified revision 25.12.0 for psf/black does not appear to be a valid tag in the repository. The latest available version is 24.4.2. Using a non-existent revision will cause pre-commit to fail. Please use a valid version.

    rev: 24.4.2

files: ^bindings/python/.*\.py$
- repo: https://github.com/pycqa/isort
rev: 5.13.2
rev: 7.0.0
Copy link
Contributor

Choose a reason for hiding this comment

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

critical

The specified revision 7.0.0 for pycqa/isort does not appear to be a valid tag in the repository. The version you are upgrading from, 5.13.2, is currently the latest stable version. Using a non-existent revision will cause pre-commit to fail. Please revert this change or use a valid version if a new one has been released.

    rev: 5.13.2

files: ^bindings/python/.*\.ya?ml$
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.10.0-1
rev: v3.12.0-2
Copy link
Contributor

Choose a reason for hiding this comment

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

critical

The specified revision v3.12.0-2 for scop/pre-commit-shfmt does not appear to be a valid tag in the repository. The latest available version is v3.8.0-1. Using a non-existent revision will cause pre-commit to fail. Please use a valid version.

    rev: v3.8.0-1

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.7.4
Copy link
Contributor

Choose a reason for hiding this comment

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

critical

The specified revision v3.7.4 for rbubley/mirrors-prettier does not appear to be a valid tag in the repository. The latest available tag is v3.1.0. Using a non-existent revision will cause pre-commit to fail.

    rev: v3.1.0

additional_dependencies:
- prettier@3.1.0
- prettier-plugin-java@2.4.0
- prettier@3.7.4
Copy link
Contributor

Choose a reason for hiding this comment

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

critical

The specified version [email protected] does not appear to be a valid version on npm. The latest version is 3.3.2. This will cause the hook installation to fail. Please use a valid version.

- prettier@3.1.0
- prettier-plugin-java@2.4.0
- prettier@3.7.4
- prettier-plugin-java@2.7.7
Copy link
Contributor

Choose a reason for hiding this comment

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

critical

The specified version [email protected] does not appear to be a valid version on npm. The latest version is 2.6.0. This will cause the hook installation to fail. Please use a valid version.

@mergify
Copy link
Contributor

mergify bot commented Dec 19, 2025

🧪 CI Insights

Here's what we observed from your CI run for 207feef.

🟢 All jobs passed!

But CI Insights is watching 👀

@robfrank robfrank merged commit 048c629 into main Dec 19, 2025
10 of 11 checks passed
@robfrank robfrank deleted the chore/pre-commit-update branch December 19, 2025 10:06
@codacy-production
Copy link

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.13%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (fa0b4f6) 75793 48295 63.72%
Head commit (207feef) 75793 (+0) 48391 (+96) 63.85% (+0.13%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#3050) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

robfrank added a commit that referenced this pull request Feb 11, 2026
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