Skip to content

Commit d1e6320

Browse files
authored
ci: Use centralized add-license pre-commit hook (#8879)
1 parent 0ae38c7 commit d1e6320

2 files changed

Lines changed: 4 additions & 385 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,12 @@ repos:
5050
- id: requirements-txt-fixer
5151
- id: trailing-whitespace
5252

53-
- repo: local
53+
- repo: https://github.com/triton-inference-server/developer_tools
54+
rev: v0.1.0
5455
hooks:
5556
- id: add-license
56-
name: Add License
57-
entry: python tools/add_copyright.py
58-
language: python
59-
stages: [pre-commit]
60-
verbose: true
61-
require_serial: true
57+
- repo: local
58+
hooks:
6259
# Incremental SPDX-header adoption: migrate each source file to the two-line
6360
# SPDX header the first time it is touched. pre-commit runs hooks only on the
6461
# files staged in a commit, so scoping by file type (below) -- not by directory

tools/add_copyright.py

Lines changed: 0 additions & 378 deletions
This file was deleted.

0 commit comments

Comments
 (0)