File tree Expand file tree Collapse file tree 3 files changed +30
-5
lines changed Expand file tree Collapse file tree 3 files changed +30
-5
lines changed Original file line number Diff line number Diff line change
1
+ name : Code linting
2
+
3
+ on :
4
+ pull_request :
5
+
6
+ jobs :
7
+ pre-commit :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - uses : actions/checkout@v3
11
+ - uses : actions/setup-python@v4
12
+ -
uses :
pre-commit/[email protected]
Original file line number Diff line number Diff line change @@ -3,6 +3,19 @@ default_install_hook_types:
3
3
- pre-commit
4
4
- commit-msg
5
5
repos :
6
+ - repo : https://github.com/pre-commit/pre-commit-hooks
7
+ rev : v4.4.0
8
+ hooks :
9
+ - id : trailing-whitespace
10
+ - id : end-of-file-fixer
11
+ - id : check-toml
12
+ - id : check-yaml
13
+ - id : check-added-large-files
14
+ - id : check-merge-conflict
15
+ - id : check-symlinks
16
+ - id : fix-byte-order-marker
17
+ - id : mixed-line-ending
18
+ - id : trailing-whitespace
6
19
- repo : https://github.com/alessandrojcm/commitlint-pre-commit-hook
7
20
rev : v9.4.0
8
21
hooks :
Original file line number Diff line number Diff line change @@ -158,9 +158,10 @@ spotless {
158
158
""" * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY""" + " \n " +
159
159
""" * KIND, either express or implied. See the License for the""" + " \n " +
160
160
""" * specific language governing permissions and limitations""" + " \n " +
161
- """ * under the License. """ + " \n " +
162
- " */\n " +
163
- " \n " )
161
+ """ * under the License.""" + " \n " +
162
+ " */\n " +
163
+ " \n " ,
164
+ )
164
165
/* licenseHeader '/*\n' +
165
166
' * Licensed under the Apache License, Version 2.0 (the "License");\n' +
166
167
' * you may not use this file except in compliance with the License.\n' +
@@ -173,9 +174,8 @@ spotless {
173
174
' * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n' +
174
175
' * KIND, either express or implied. See the License for the\n' +
175
176
' * specific language governing permissions and limitations\n' +
176
- ' * under the License. \n' +
177
+ ' * under the License.\n' +
177
178
' */\n' +
178
179
'\n'*/
179
180
}
180
181
}
181
-
You can’t perform that action at this time.
0 commit comments