Skip to content

Commit 1b46ec0

Browse files
authored
Merge #401
401: 🤖 Automatically format the source code files r=DilumAluthge a=github-actions[bot] This pull request formats the source code files using the JuliaFormatter package. Co-authored-by: bors[bot] <bors[bot]@users.noreply.github.com>
2 parents cb96d1b + 51f79f0 commit 1b46ec0

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

src/dependencies.jl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ function get_latest_version!(deps, registries)
8989
versions_toml_path = joinpath(
9090
registry, packages[uuid]["path"], "Versions.toml"
9191
)
92-
versions =
93-
VersionNumber.(collect(keys(TOML.parsefile(versions_toml_path))))
92+
versions = VersionNumber.(collect(keys(TOML.parsefile(versions_toml_path))))
9493

9594
max_version = maximum(versions)
9695
dep.latest_version = _max(dep.latest_version, max_version)
@@ -99,10 +98,8 @@ function get_latest_version!(deps, registries)
9998
end
10099
end
101100

102-
function get_existing_registries!(
103-
deps::Set{DepInfo}, depot::String
104-
)
105-
registries = readdir(joinpath(depot, "registries"), join=true)
101+
function get_existing_registries!(deps::Set{DepInfo}, depot::String)
102+
registries = readdir(joinpath(depot, "registries"); join=true)
106103
get_latest_version!(deps, registries)
107104

108105
return deps

test/dependencies.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ end
101101
),
102102
])
103103

104-
result = CompatHelper.get_existing_registries!(
105-
deps, joinpath(@__DIR__, "deps")
106-
)
104+
result = CompatHelper.get_existing_registries!(deps, joinpath(@__DIR__, "deps"))
107105

108106
@test length(result) == 3
109107

test/integration_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ function run_integration_tests(
165165
pr_title_prefix="$(GLOBAL_PR_TITLE_PREFIX) [test-8a] ",
166166
master_branch=master_8,
167167
entry_type=DropEntry(),
168-
use_existing_registries = true,
168+
use_existing_registries=true,
169169
)
170170
end
171171
end

test/patches.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ clone_all_registries_patch = @patch function CompatHelper.clone_all_registries(
3131
f::Function, registry_list::Vector{Pkg.RegistrySpec}
3232
)
3333
return f([
34-
joinpath(@__DIR__, "deps", "registries", "registry_1"), joinpath(@__DIR__, "deps", "registries", "registry_2")
34+
joinpath(@__DIR__, "deps", "registries", "registry_1"),
35+
joinpath(@__DIR__, "deps", "registries", "registry_2"),
3536
])
3637
end
3738

0 commit comments

Comments
 (0)