36
36
- --comment-style
37
37
- " |#|"
38
38
- --license-filepath
39
- - license-templates.txt
39
+ - license-templates/LICENSE .txt
40
40
- --fuzzy-match-generates-todo
41
41
files : ^\.gitmodules$|^\.gitignore$|^\.gitignore$|^Dockerfile.*$
42
42
- id : insert-license
46
46
- --comment-style
47
47
- " /**| *| */"
48
48
- --license-filepath
49
- - license-templates.txt
49
+ - license-templates/LICENSE .txt
50
50
- --fuzzy-match-generates-todo
51
51
- id : insert-license
52
52
name : Add licence for all shell files
56
56
- --comment-style
57
57
- " |#|"
58
58
- --license-filepath
59
- - license-templates.txt
59
+ - license-templates/LICENSE .txt
60
60
- --fuzzy-match-generates-todo
61
61
- id : insert-license
62
62
name : Add licence for all yaml files
65
65
- --comment-style
66
66
- " |#|"
67
67
- --license-filepath
68
- - license-templates.txt
68
+ - license-templates/LICENSE .txt
69
69
- --fuzzy-match-generates-todo
70
70
- id : insert-license
71
71
name : Add licence for all TOML files
74
74
- --comment-style
75
75
- " |#|"
76
76
- --license-filepath
77
- - license-templates.txt
77
+ - license-templates/LICENSE .txt
78
78
- --fuzzy-match-generates-todo
79
79
- id : insert-license
80
80
name : Add licence for all HTML files
@@ -83,9 +83,36 @@ repos:
83
83
- --comment-style
84
84
- " {{/*||*/}}"
85
85
- --license-filepath
86
- - license-templates.txt
86
+ - license-templates/LICENSE .txt
87
87
- --fuzzy-match-generates-todo
88
88
files : ^landing-pages/site/layouts/.+\.html$
89
+ - id : insert-license
90
+ name : Add licence for all Python files
91
+ types : [python]
92
+ args :
93
+ - --comment-style
94
+ - " |#|"
95
+ - --license-filepath
96
+ - license-templates/LICENSE.txt
97
+ - --fuzzy-match-generates-todo
98
+ - id : insert-license
99
+ name : Add license for all rst files
100
+ args :
101
+ - --comment-style
102
+ - " ||"
103
+ - --license-filepath
104
+ - license-templates/LICENSE.rst
105
+ - --fuzzy-match-generates-todo
106
+ files : \.rst$
107
+ - id : insert-license
108
+ name : Add license for all JINJA template files
109
+ files : ^sphinx_airflow_theme/.*\.html$
110
+ args :
111
+ - --comment-style
112
+ - " {#||#}"
113
+ - --license-filepath
114
+ - license-templates/LICENSE.txt
115
+ - --fuzzy-match-generates-todo
89
116
- repo : local
90
117
hooks :
91
118
- id : shellcheck
@@ -110,22 +137,22 @@ repos:
110
137
entry : ./site.sh lint-js
111
138
language : system
112
139
files : \.js$
113
- - repo : https://github.com/pre-commit/pre-commit-hooks
114
- rev : v2.3.0
115
- hooks :
116
- - id : check-executables-have-shebangs
117
- - id : check-json
118
- - id : check-merge-conflict
119
- - id : check-toml
120
- - id : check-yaml
121
- - id : detect-private-key
122
- - id : end-of-file-fixer
123
- - id : pretty-format-json
124
- args :
125
- - --indent=2
126
- - --autofix
127
- - --top-keys=name,version,description,repository,main,author,license,scripts
128
- - id : mixed-line-ending
129
- - id : requirements-txt-fixer
130
- - id : trailing-whitespace
131
- args : [--markdown-linebreak-ext=md]
140
+ - repo : https://github.com/pre-commit/pre-commit-hooks
141
+ rev : v2.3.0
142
+ hooks :
143
+ - id : check-executables-have-shebangs
144
+ - id : check-json
145
+ - id : check-merge-conflict
146
+ - id : check-toml
147
+ - id : check-yaml
148
+ - id : detect-private-key
149
+ - id : end-of-file-fixer
150
+ - id : pretty-format-json
151
+ args :
152
+ - --indent=2
153
+ - --autofix
154
+ - --top-keys=name,version,description,repository,main,author,license,scripts
155
+ - id : mixed-line-ending
156
+ - id : requirements-txt-fixer
157
+ - id : trailing-whitespace
158
+ args : [--markdown-linebreak-ext=md]
0 commit comments