|
| 1 | +# See https://pre-commit.com for more information |
| 2 | +# See https://pre-commit.com/hooks.html for more hooks |
| 3 | + |
1 | 4 | repos:
|
2 |
| -- repo: https://github.com/pre-commit/pre-commit-hooks |
| 5 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
3 | 6 | rev: v5.0.0
|
4 | 7 | 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 |
32 | 23 | 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 |
34 | 48 | name: rustfmt
|
35 |
| - entry: bash -c 'cd rustutils && cargo fmt' -- |
| 49 | + entry: sh -c 'cd rustutils && cargo fmt --all' |
36 | 50 | language: rust
|
37 |
| - types: [rust] |
| 51 | + types: [ rust ] |
| 52 | + |
38 | 53 | ci:
|
39 | 54 | # sometimes fails https://github.com/keith/pre-commit-buildifier/issues/13
|
40 |
| - skip: [buildifier] |
| 55 | + skip: [ buildifier ] |
41 | 56 | autoupdate_schedule: monthly
|
0 commit comments