ci: Use centralized add-license pre-commit hook#8879
Merged
yinggeh merged 3 commits intoJul 18, 2026
Merged
Conversation
Vinya567
previously approved these changes
Jul 13, 2026
whoisj
previously approved these changes
Jul 15, 2026
mc-nv
previously approved these changes
Jul 15, 2026
…lidation-to-remaining-repos
mc-nv
approved these changes
Jul 18, 2026
yinggeh
deleted the
yinggeh/tri-1570-add-pre-commit-copyright-validation-to-remaining-repos
branch
July 18, 2026 00:00
This was referenced Jul 18, 2026
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.
What does the PR do?
Switches the
add-licensepre-commit hook from the in-repotools/add_copyright.pyscript to the centralizedtriton-inference-server/pre-commit-hooksrepo, and removes the now-unused local script. This standardizes copyright-header validation/insertion across Triton repos.Checklist
<commit_type>: <Title>Commit Type:
Check the conventional commit type
box here and add the label to the github PR.
Related PRs:
Companion PRs applying the same centralized hook across the other Triton repositories:
Where should the reviewer start?
.pre-commit-config.yaml(now references the shared hook) and the removal oftools/add_copyright.py.Test plan:
Run
pre-commit run add-license --all-fileslocally and confirm it passes with consistent copyright headers.CI Pipeline ID:
Caveats:
The hook now resolves from
triton-inference-server/pre-commit-hooks, which must be reachable when running pre-commit locally / in CI.Background
Consolidates the copyright hook that previously lived in
server/tools/add_copyright.pyinto a single sharedpre-commit-hooksrepo used by all Triton repos.Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)