unify license copyright (#234)
Signed-off-by: chensuyue <suyue.chen@intel.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
# Copyright (C) 2024 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
ci:
|
||||
autofix_prs: true
|
||||
autoupdate_schedule: quarterly
|
||||
@@ -25,13 +28,22 @@ repos:
|
||||
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
||||
rev: v1.5.5
|
||||
hooks:
|
||||
- id: insert-license
|
||||
files: (Dockerfile)$
|
||||
args:
|
||||
[
|
||||
--license-filepath=.github/license_template.txt,
|
||||
--use-current-year,
|
||||
--detect-license-in-X-top-lines=5,
|
||||
--skip-license-insertion-comment=Copyright,
|
||||
]
|
||||
- id: insert-license
|
||||
files: (.*\.(py|yaml|yml|sh))$
|
||||
args:
|
||||
[
|
||||
--license-filepath=.github/license_template.txt,
|
||||
--use-current-year,
|
||||
--detect-license-in-X-top-lines=40,
|
||||
--detect-license-in-X-top-lines=5,
|
||||
--skip-license-insertion-comment=Copyright,
|
||||
]
|
||||
- id: insert-license
|
||||
@@ -40,7 +52,7 @@ repos:
|
||||
[
|
||||
--license-filepath=.github/license_template.txt,
|
||||
--use-current-year,
|
||||
--detect-license-in-X-top-lines=40,
|
||||
--detect-license-in-X-top-lines=5,
|
||||
--skip-license-insertion-comment=Copyright,
|
||||
--comment-style=//,
|
||||
]
|
||||
@@ -50,7 +62,7 @@ repos:
|
||||
[
|
||||
--license-filepath=.github/license_template.txt,
|
||||
--use-current-year,
|
||||
--detect-license-in-X-top-lines=40,
|
||||
--detect-license-in-X-top-lines=5,
|
||||
--skip-license-insertion-comment=Copyright,
|
||||
--comment-style=<!--| |-->,
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user