Skip to content

Commit aa18188

Browse files
authored
pre-commit: auto add license headers for all YAML files (apache#12069)
Fix and standardize one license header
1 parent 4ed86a2 commit aa18188

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
@@ -71,6 +71,16 @@ repos:
7171
- --license-filepath
7272
- .github/workflows/license-templates/LICENSE.txt
7373
- --fuzzy-match-generates-todo
74+
- id: insert-license
75+
name: add license for all YAML files
76+
description: automatically adds a licence header to all YAML files that don't have a license header
77+
files: \.ya?ml$
78+
args:
79+
- --comment-style
80+
- '|#|'
81+
- --license-filepath
82+
- .github/workflows/license-templates/LICENSE.txt
83+
- --fuzzy-match-generates-todo
7484
- repo: https://github.com/pre-commit/pre-commit-hooks
7585
rev: v6.0.0
7686
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)