Skip to content

Commit 688a416

Browse files
committed
pre-commit: auto add license headers for all YAML files
Fix and standardize one license header
1 parent ac3b180 commit 688a416

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ repos:
6262
- .github/workflows/license-templates/LICENSE.txt
6363
- --fuzzy-match-generates-todo
6464
exclude: ^(CHANGES|ISSUE_TEMPLATE|PULL_REQUEST_TEMPLATE)\.md$|^ui/docs/(full|smoke)-test-plan\.template\.md$
65+
- id: insert-license
66+
name: add license for all YAML files
67+
description: automatically adds a licence header to all YAML files that don't have a license header
68+
files: \.ya?ml$
69+
args:
70+
- --comment-style
71+
- '|#|'
72+
- --license-filepath
73+
- .github/workflows/license-templates/LICENSE.txt
74+
- --fuzzy-match-generates-todo
6575
- repo: https://github.com/pre-commit/pre-commit-hooks
6676
rev: v6.0.0
6777
hooks:

tools/docker/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
# to you under the Apache License, Version 2.0 (the
66
# "License"); you may not use this file except in compliance
77
# with the License. You may obtain a copy of the License at
8-
8+
#
99
# http://www.apache.org/licenses/LICENSE-2.0
10-
10+
#
1111
# Unless required by applicable law or agreed to in writing,
1212
# software distributed under the License is distributed on an
1313
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY

0 commit comments

Comments
 (0)