Skip to content

ci: Add centralized add-license pre-commit hook#60

Merged
yinggeh merged 4 commits into
mainfrom
yinggeh/tri-1570-add-pre-commit-copyright-validation-to-remaining-repos
Jul 17, 2026
Merged

ci: Add centralized add-license pre-commit hook#60
yinggeh merged 4 commits into
mainfrom
yinggeh/tri-1570-add-pre-commit-copyright-validation-to-remaining-repos

Conversation

@yinggeh

@yinggeh yinggeh commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Makes developer_tools the canonical home for the shared add-license pre-commit hook that standardizes copyright-header validation/insertion across Triton repos.

  • Adds tools/add_copyright.py (portable: resolves the consuming repo's root via git rev-parse --show-toplevel and reads that repo's LICENSE), mirroring the server/tools/ layout.
  • Adds a root .pre-commit-hooks.yaml exposing the add-license hook so other repos can consume it via repo: https://github.com/triton-inference-server/developer_tools.
  • Adds a root LICENSE (NVIDIA BSD-3-Clause, matching the repo's existing source-file headers).
  • Self-enables the hook in this repo's own .pre-commit-config.yaml via a repo: local entry.

Consumer repos will pin this via a tag once merged.

@yinggeh yinggeh self-assigned this Jul 13, 2026
@yinggeh
yinggeh requested review from Vinya567, mc-nv and whoisj July 13, 2026 22:49
Comment thread .pre-commit-hooks.yaml
@mc-nv
mc-nv self-requested a review July 14, 2026 16:04
Comment thread tools/add_copyright.py
Comment thread tools/add_copyright.py
@yinggeh
yinggeh merged commit d8f6e9f into main Jul 17, 2026
1 of 2 checks passed
@yinggeh yinggeh added the enhancement New feature or request label Jul 17, 2026
@yinggeh
yinggeh deleted the yinggeh/tri-1570-add-pre-commit-copyright-validation-to-remaining-repos branch July 17, 2026 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants