-
-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor pre-commit-config change (#3251)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
a188663
commit aa0fa21
Showing
3 changed files
with
68 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,56 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v5.0.0 | ||
hooks: | ||
- id: check-yaml | ||
args: [--allow-multiple-documents, --unsafe] | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
# FIXME: these autogenerate files contain trailing whitespace. Need to fix generator. | ||
exclude: 'platform/android/MapLibreAndroid/src/main/java/org/maplibre/android/(location/LocationIndicatorLayer|style/layers/PropertyFactory)\.java' | ||
- repo: https://github.com/pre-commit/mirrors-clang-format | ||
rev: v19.1.7 | ||
hooks: | ||
- id: clang-format | ||
files: '.*\.(hpp|cpp|h)' | ||
exclude: 'vendor/.*' | ||
- repo: https://github.com/keith/pre-commit-buildifier | ||
rev: 8.0.1 | ||
hooks: | ||
- id: buildifier | ||
- repo: https://github.com/Mateusz-Grzelinski/actionlint-py | ||
rev: v1.7.7.23 | ||
hooks: | ||
- id: actionlint | ||
additional_dependencies: [shellcheck-py] | ||
- repo: https://github.com/nicklockwood/SwiftFormat | ||
rev: "0.55.5" | ||
hooks: | ||
- id: swiftformat | ||
args: [--swiftversion, "5.8"] | ||
- repo: local | ||
- id: check-added-large-files | ||
- id: check-toml | ||
- id: check-yaml | ||
args: [ --allow-multiple-documents, --unsafe ] | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
args: [ --fix=lf ] | ||
# these are generated by Gradle | ||
exclude: 'gradlew\.bat$' | ||
- id: trailing-whitespace | ||
# FIXME: these autogenerate files contain trailing whitespace. Need to fix generator. | ||
exclude: 'platform/android/MapLibreAndroid/src/main/java/org/maplibre/android/(location/LocationIndicatorLayer|style/layers/PropertyFactory)\.java$' | ||
|
||
- repo: https://github.com/pre-commit/mirrors-clang-format | ||
rev: v19.1.7 | ||
hooks: | ||
- id: rustfmt | ||
- id: clang-format | ||
files: '.*\.(hpp|cpp|h)' | ||
exclude: 'vendor/.*' | ||
|
||
- repo: https://github.com/keith/pre-commit-buildifier | ||
rev: 8.0.1 | ||
hooks: | ||
- id: buildifier | ||
|
||
- repo: https://github.com/Mateusz-Grzelinski/actionlint-py | ||
rev: v1.7.7.23 | ||
hooks: | ||
- id: actionlint | ||
additional_dependencies: [ shellcheck-py ] | ||
|
||
- repo: https://github.com/nicklockwood/SwiftFormat | ||
rev: "0.55.5" | ||
hooks: | ||
- id: swiftformat | ||
args: [ --swiftversion, "5.8" ] | ||
|
||
- repo: local | ||
hooks: | ||
- id: rustfmt | ||
name: rustfmt | ||
entry: bash -c 'cd rustutils && cargo fmt' -- | ||
entry: sh -c 'cd rustutils && cargo fmt --all' | ||
language: rust | ||
types: [rust] | ||
types: [ rust ] | ||
|
||
ci: | ||
# sometimes fails https://github.com/keith/pre-commit-buildifier/issues/13 | ||
skip: [buildifier] | ||
skip: [ buildifier ] | ||
autoupdate_schedule: monthly |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.