Skip to content

Re-enable pre-commit insert-license hook (another implementation).#3499

Draft
igorts-git wants to merge 1 commit intomainfrom
igorts/pre-commit-license2
Draft

Re-enable pre-commit insert-license hook (another implementation).#3499
igorts-git wants to merge 1 commit intomainfrom
igorts/pre-commit-license2

Conversation

@igorts-git
Copy link
Copy Markdown
Collaborator

Description

Re-enable the license inserting pre-commit hook using a different implementation.
This one is using google/addlicense hook, which is smarter than the previous implementation.
It can ignore formatting issues and won't attempt to add second license if the formatting does not match.

Tests

Manual running of pre-commit with a few locally modified files to test various scenarios, such as different space formatting, different years in the copyright string, complete removal of the license, etc.

Checklist

Before submitting this PR, please make sure (put X in square brackets):

  • I have performed a self-review of my code. For an optional AI review, add the gemini-review label.
  • I have necessary comments in my code, particularly in hard-to-understand areas.
  • I have run end-to-end tests tests and provided workload links above if applicable.
  • I have made or will make corresponding changes to the doc if needed, including adding new documentation pages to the relevant Table of Contents (toctree directive) as explained in our documentation.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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