Skip to content

Commit aa0fa21

Browse files
Minor pre-commit-config change (#3251)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent a188663 commit aa0fa21

File tree

3 files changed

+68
-53
lines changed

3 files changed

+68
-53
lines changed

.pre-commit-config.yaml

+47-32
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,56 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
14
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
36
rev: v5.0.0
47
hooks:
5-
- id: check-yaml
6-
args: [--allow-multiple-documents, --unsafe]
7-
- id: end-of-file-fixer
8-
- id: trailing-whitespace
9-
# FIXME: these autogenerate files contain trailing whitespace. Need to fix generator.
10-
exclude: 'platform/android/MapLibreAndroid/src/main/java/org/maplibre/android/(location/LocationIndicatorLayer|style/layers/PropertyFactory)\.java'
11-
- repo: https://github.com/pre-commit/mirrors-clang-format
12-
rev: v19.1.7
13-
hooks:
14-
- id: clang-format
15-
files: '.*\.(hpp|cpp|h)'
16-
exclude: 'vendor/.*'
17-
- repo: https://github.com/keith/pre-commit-buildifier
18-
rev: 8.0.1
19-
hooks:
20-
- id: buildifier
21-
- repo: https://github.com/Mateusz-Grzelinski/actionlint-py
22-
rev: v1.7.7.23
23-
hooks:
24-
- id: actionlint
25-
additional_dependencies: [shellcheck-py]
26-
- repo: https://github.com/nicklockwood/SwiftFormat
27-
rev: "0.55.5"
28-
hooks:
29-
- id: swiftformat
30-
args: [--swiftversion, "5.8"]
31-
- repo: local
8+
- id: check-added-large-files
9+
- id: check-toml
10+
- id: check-yaml
11+
args: [ --allow-multiple-documents, --unsafe ]
12+
- id: end-of-file-fixer
13+
- id: mixed-line-ending
14+
args: [ --fix=lf ]
15+
# these are generated by Gradle
16+
exclude: 'gradlew\.bat$'
17+
- id: trailing-whitespace
18+
# FIXME: these autogenerate files contain trailing whitespace. Need to fix generator.
19+
exclude: 'platform/android/MapLibreAndroid/src/main/java/org/maplibre/android/(location/LocationIndicatorLayer|style/layers/PropertyFactory)\.java$'
20+
21+
- repo: https://github.com/pre-commit/mirrors-clang-format
22+
rev: v19.1.7
3223
hooks:
33-
- id: rustfmt
24+
- id: clang-format
25+
files: '.*\.(hpp|cpp|h)'
26+
exclude: 'vendor/.*'
27+
28+
- repo: https://github.com/keith/pre-commit-buildifier
29+
rev: 8.0.1
30+
hooks:
31+
- id: buildifier
32+
33+
- repo: https://github.com/Mateusz-Grzelinski/actionlint-py
34+
rev: v1.7.7.23
35+
hooks:
36+
- id: actionlint
37+
additional_dependencies: [ shellcheck-py ]
38+
39+
- repo: https://github.com/nicklockwood/SwiftFormat
40+
rev: "0.55.5"
41+
hooks:
42+
- id: swiftformat
43+
args: [ --swiftversion, "5.8" ]
44+
45+
- repo: local
46+
hooks:
47+
- id: rustfmt
3448
name: rustfmt
35-
entry: bash -c 'cd rustutils && cargo fmt' --
49+
entry: sh -c 'cd rustutils && cargo fmt --all'
3650
language: rust
37-
types: [rust]
51+
types: [ rust ]
52+
3853
ci:
3954
# sometimes fails https://github.com/keith/pre-commit-buildifier/issues/13
40-
skip: [buildifier]
55+
skip: [ buildifier ]
4156
autoupdate_schedule: monthly
+11-11
Loading
+10-10
Loading

0 commit comments

Comments
 (0)