Skip to content

Commit

Permalink
Minor pre-commit-config change (#3251)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
nyurik and pre-commit-ci[bot] authored Mar 6, 2025
1 parent a188663 commit aa0fa21
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 53 deletions.
79 changes: 47 additions & 32 deletions .pre-commit-config.yaml
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
22 changes: 11 additions & 11 deletions platform/android/resources/dot-arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 10 additions & 10 deletions platform/default/resources/default_marker.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit aa0fa21

Please sign in to comment.