Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#3007)
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
pre-commit-ci[bot] authored Nov 25, 2024
1 parent 6272eb3 commit 7e1e1fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)'
Expand All @@ -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"]
Expand Down
4 changes: 2 additions & 2 deletions platform/darwin/test/MLNDocumentationExampleTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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."]))
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 7e1e1fb

Please sign in to comment.