[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:
committed by
GitHub
parent
6272eb318a
commit
7e1e1fbf06
@@ -5,7 +5,7 @@ repos:
|
|||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
args: [--allow-multiple-documents, --unsafe]
|
args: [--allow-multiple-documents, --unsafe]
|
||||||
- repo: https://github.com/pre-commit/mirrors-clang-format
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
||||||
rev: v19.1.3
|
rev: v19.1.4
|
||||||
hooks:
|
hooks:
|
||||||
- id: clang-format
|
- id: clang-format
|
||||||
files: '.*\.(hpp|cpp|h)'
|
files: '.*\.(hpp|cpp|h)'
|
||||||
@@ -15,12 +15,12 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: buildifier
|
- id: buildifier
|
||||||
- repo: https://github.com/Mateusz-Grzelinski/actionlint-py
|
- repo: https://github.com/Mateusz-Grzelinski/actionlint-py
|
||||||
rev: v1.7.3.17
|
rev: v1.7.4.20
|
||||||
hooks:
|
hooks:
|
||||||
- id: actionlint
|
- id: actionlint
|
||||||
additional_dependencies: [shellcheck-py]
|
additional_dependencies: [shellcheck-py]
|
||||||
- repo: https://github.com/nicklockwood/SwiftFormat
|
- repo: https://github.com/nicklockwood/SwiftFormat
|
||||||
rev: "0.54.6"
|
rev: "0.55.2"
|
||||||
hooks:
|
hooks:
|
||||||
- id: swiftformat
|
- id: swiftformat
|
||||||
args: [--swiftversion, "5.8"]
|
args: [--swiftversion, "5.8"]
|
||||||
|
|||||||
@@ -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.
|
// Mock MLNOfflineStorage singleton so that it doesn't start long-running tasks that could interfere with other tests.
|
||||||
fileprivate class MLNOfflineStorageMock {
|
fileprivate class MLNOfflineStorageMock {
|
||||||
static let shared = 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:))))
|
XCTAssert(MLNOfflineStorage.shared.responds(to: #selector(MLNOfflineStorage.shared.addPack(for:withContext:completionHandler:))))
|
||||||
if let completionHandler {
|
if let completionHandler {
|
||||||
completionHandler(nil, NSError(domain: "MLNDocumentationExampleError", code: 0, userInfo: [NSLocalizedDescriptionKey: "\(#function) is mocked and not functional."]))
|
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
|
// URL requires setting an access token. So this identically named
|
||||||
// subclass of MLNRasterDEMSource swaps in a nonexistent URL.
|
// subclass of MLNRasterDEMSource swaps in a nonexistent URL.
|
||||||
class MLNRasterDEMSource: MapLibre.MLNRasterDEMSource {
|
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")!
|
let bogusURL = URL(string: "https://example.com/raster-rgb.json")!
|
||||||
super.init(identifier: identifier, configurationURL: bogusURL, tileSize: tileSize)
|
super.init(identifier: identifier, configurationURL: bogusURL, tileSize: tileSize)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user