[pre-commit.ci] pre-commit autoupdate (#3007)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
pre-commit-ci[bot]
2024-11-25 22:59:51 +00:00
committed by GitHub
parent 6272eb318a
commit 7e1e1fbf06
2 changed files with 5 additions and 5 deletions

View File

@@ -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"]

View File

@@ -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)
}