From 7e1e1fbf06d70285e61dae92e9dd116f2846b472 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 22:59:51 +0000 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#3007) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 6 +++--- platform/darwin/test/MLNDocumentationExampleTests.swift | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 25cc6695256..28f89bb74d6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: - id: check-yaml args: [--allow-multiple-documents, --unsafe] - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v19.1.3 + rev: v19.1.4 hooks: - id: clang-format files: '.*\.(hpp|cpp|h)' @@ -15,12 +15,12 @@ repos: hooks: - id: buildifier - repo: https://github.com/Mateusz-Grzelinski/actionlint-py - rev: v1.7.3.17 + rev: v1.7.4.20 hooks: - id: actionlint additional_dependencies: [shellcheck-py] - repo: https://github.com/nicklockwood/SwiftFormat - rev: "0.54.6" + rev: "0.55.2" hooks: - id: swiftformat args: [--swiftversion, "5.8"] diff --git a/platform/darwin/test/MLNDocumentationExampleTests.swift b/platform/darwin/test/MLNDocumentationExampleTests.swift index 9751ae1b114..a600624f829 100644 --- a/platform/darwin/test/MLNDocumentationExampleTests.swift +++ b/platform/darwin/test/MLNDocumentationExampleTests.swift @@ -27,7 +27,7 @@ class MLNDocumentationExampleTests: XCTestCase, MLNMapViewDelegate { // Mock MLNOfflineStorage singleton so that it doesn't start long-running tasks that could interfere with other tests. fileprivate class MLNOfflineStorageMock { static let shared = MLNOfflineStorageMock() - func addPack(for: MLNOfflineRegion, withContext: Data, completionHandler: MLNOfflinePackAdditionCompletionHandler? = nil) { + func addPack(for _: MLNOfflineRegion, withContext _: Data, completionHandler: MLNOfflinePackAdditionCompletionHandler? = nil) { XCTAssert(MLNOfflineStorage.shared.responds(to: #selector(MLNOfflineStorage.shared.addPack(for:withContext:completionHandler:)))) if let completionHandler { completionHandler(nil, NSError(domain: "MLNDocumentationExampleError", code: 0, userInfo: [NSLocalizedDescriptionKey: "\(#function) is mocked and not functional."])) @@ -182,7 +182,7 @@ class MLNDocumentationExampleTests: XCTestCase, MLNMapViewDelegate { // URL requires setting an access token. So this identically named // subclass of MLNRasterDEMSource swaps in a nonexistent URL. class MLNRasterDEMSource: MapLibre.MLNRasterDEMSource { - override init(identifier: String, configurationURL: URL, tileSize: CGFloat = 256) { + override init(identifier: String, configurationURL _: URL, tileSize: CGFloat = 256) { let bogusURL = URL(string: "https://example.com/raster-rgb.json")! super.init(identifier: identifier, configurationURL: bogusURL, tileSize: tileSize) }