Skip to content

Commit 7cd2100

Browse files
committed
use native pre-commit hooks
1 parent 911d491 commit 7cd2100

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@
1313
# limitations under the License.
1414

1515
repos:
16-
- repo: local
17-
hooks:
18-
- id: clang-format
19-
name: clang-format
20-
language: python
21-
entry: tools/clang-format.sh
22-
args: [clang-format]
23-
additional_dependencies: ['clang-format>=15,<16']
16+
- repo: local
17+
hooks:
18+
- id: clang-format
19+
name: clang-format
20+
language: python
21+
entry: tools/clang-format.sh
22+
args: [clang-format]
23+
additional_dependencies: ["clang-format>=15,<16"]
2424

25-
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
26-
rev: 0.2.3
27-
hooks:
28-
- id: yamlfmt
29-
args: [--mapping, '2', --sequence, '2', --offset, '0', --width, '150', --implicit_start]
30-
files: \.ya?ml$
25+
- repo: https://github.com/pre-commit/pre-commit-hooks
26+
rev: v6.0.0
27+
hooks:
28+
- id: check-yaml
29+
- id: end-of-file-fixer
30+
- id: trailing-whitespace

0 commit comments

Comments
 (0)