Skip to content

Commit 962b7f6

Browse files
asinghvi17claude
andcommitted
style: apply runic formatting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 99b296a commit 962b7f6

2 files changed

Lines changed: 27 additions & 22 deletions

File tree

test/runtests.jl

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,38 +8,38 @@ const is_APPVEYOR = Sys.iswindows() && haskey(ENV, "APPVEYOR")
88
function activate_downstream_env()
99
Pkg.activate("downstream")
1010
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))
11-
Pkg.instantiate()
11+
return Pkg.instantiate()
1212
end
1313

1414
function activate_gpu_env()
1515
Pkg.activate("gpu")
1616
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))
17-
Pkg.instantiate()
17+
return Pkg.instantiate()
1818
end
1919

2020
function activate_odeinterface_env()
2121
Pkg.activate("odeinterface")
2222
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))
23-
Pkg.instantiate()
23+
return Pkg.instantiate()
2424
end
2525

2626
function activate_enzyme_env()
2727
Pkg.activate("enzyme")
2828
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))
29-
Pkg.instantiate()
29+
return Pkg.instantiate()
3030
end
3131

3232
function activate_trim_env()
3333
Pkg.activate("trim")
34-
Pkg.instantiate()
34+
return Pkg.instantiate()
3535
end
3636

3737
#Start Test Script
3838

3939
@time begin
4040
if contains(GROUP, "OrdinaryDiffEq") || GROUP == "ImplicitDiscreteSolve" || GROUP == "SimpleImplicitDiscreteSolve"
4141
Pkg.activate(joinpath(dirname(@__DIR__), "lib", GROUP))
42-
Pkg.test(GROUP, julia_args=["--check-bounds=auto", "--compiled-modules=yes", "--depwarn=yes"], force_latest_compatible_version=false, allow_reresolve=true)
42+
Pkg.test(GROUP, julia_args = ["--check-bounds=auto", "--compiled-modules=yes", "--depwarn=yes"], force_latest_compatible_version = false, allow_reresolve = true)
4343
elseif GROUP == "All" || GROUP == "InterfaceI" || GROUP == "Interface"
4444
@time @safetestset "Discrete Algorithm Tests" include("interface/discrete_algorithm_test.jl")
4545
@time @safetestset "Tstops Tests" include("interface/ode_tstops_tests.jl")
@@ -107,7 +107,7 @@ end
107107
end
108108

109109
if !is_APPVEYOR &&
110-
(GROUP == "All" || GROUP == "Integrators_I" || GROUP == "Integrators")
110+
(GROUP == "All" || GROUP == "Integrators_I" || GROUP == "Integrators")
111111
@time @safetestset "Reinit Tests" include("integrators/reinit_test.jl")
112112
@time @safetestset "Events Tests" include("integrators/ode_event_tests.jl")
113113
@time @safetestset "Alg Events Tests" include("integrators/alg_events_tests.jl")
@@ -122,7 +122,7 @@ end
122122
end
123123

124124
if !is_APPVEYOR &&
125-
(GROUP == "All" || GROUP == "Integrators_II" || GROUP == "Integrators")
125+
(GROUP == "All" || GROUP == "Integrators_II" || GROUP == "Integrators")
126126
@time @safetestset "Reverse Directioned Event Tests" include("integrators/rev_events_tests.jl")
127127
@time @safetestset "Differentiation Direction Tests" include("integrators/diffdir_tests.jl")
128128
@time @safetestset "Resize Tests" include("integrators/resize_tests.jl")
@@ -193,8 +193,12 @@ end
193193
activate_gpu_env()
194194
@time @safetestset "Simple GPU" begin
195195
import OrdinaryDiffEqCore
196-
include(joinpath(dirname(pathof(OrdinaryDiffEqCore.DiffEqBase)), "..",
197-
"test/gpu/simple_gpu.jl"))
196+
include(
197+
joinpath(
198+
dirname(pathof(OrdinaryDiffEqCore.DiffEqBase)), "..",
199+
"test/gpu/simple_gpu.jl"
200+
)
201+
)
198202
end
199203
@time @safetestset "Autoswitch GPU" include("gpu/autoswitch.jl")
200204
@time @safetestset "Linear LSRK GPU" include("gpu/linear_lsrk.jl")

test/trim/trim_tests.jl

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Base.@kwdef struct SolverConfig
2323
display_name::String # human-readable name for log messages
2424
end
2525

26-
const SOLVER_CONFIGS = Dict{String,SolverConfig}(
26+
const SOLVER_CONFIGS = Dict{String, SolverConfig}(
2727
"tsit5" => SolverConfig(
2828
pkg = "OrdinaryDiffEqTsit5",
2929
uuid = "b1df2697-797e-41e3-8120-5422d3b24e4a",
@@ -64,23 +64,23 @@ const LIB_REL_PATH = "../../.."
6464
# Packages with a non-nothing lib_subdir get a [sources] entry pointing to
6565
# the local monorepo checkout.
6666
const ALL_DEPS = Dict(
67-
"ADTypes" => ("47edcb42-4c32-4615-8424-f2b9edc5f35b", nothing),
68-
"LinearSolve" => ("7ed4a6bd-45f5-4d41-b270-4a48e9bafcae", nothing),
69-
"SciMLBase" => ("0bca4576-84f4-4d90-8ffe-ffa030f20462", nothing),
70-
"SciMLLogging" => ("a6db7da4-7206-11f0-1eab-35f2a5dbe1d1", nothing),
71-
"OrdinaryDiffEqCore" => ("bbf590c4-e513-4bbe-9b18-05decba2e5d8", "OrdinaryDiffEqCore"),
72-
"OrdinaryDiffEqTsit5" => ("b1df2697-797e-41e3-8120-5422d3b24e4a", "OrdinaryDiffEqTsit5"),
73-
"OrdinaryDiffEqBDF" => ("6ad6398a-0878-4a85-9266-38940aa047c8", "OrdinaryDiffEqBDF"),
67+
"ADTypes" => ("47edcb42-4c32-4615-8424-f2b9edc5f35b", nothing),
68+
"LinearSolve" => ("7ed4a6bd-45f5-4d41-b270-4a48e9bafcae", nothing),
69+
"SciMLBase" => ("0bca4576-84f4-4d90-8ffe-ffa030f20462", nothing),
70+
"SciMLLogging" => ("a6db7da4-7206-11f0-1eab-35f2a5dbe1d1", nothing),
71+
"OrdinaryDiffEqCore" => ("bbf590c4-e513-4bbe-9b18-05decba2e5d8", "OrdinaryDiffEqCore"),
72+
"OrdinaryDiffEqTsit5" => ("b1df2697-797e-41e3-8120-5422d3b24e4a", "OrdinaryDiffEqTsit5"),
73+
"OrdinaryDiffEqBDF" => ("6ad6398a-0878-4a85-9266-38940aa047c8", "OrdinaryDiffEqBDF"),
7474
"OrdinaryDiffEqRosenbrock" => ("43230ef6-c299-4910-a778-202eb28ce4ce", "OrdinaryDiffEqRosenbrock"),
75-
"OrdinaryDiffEqDefault" => ("50262376-6c5a-4cf5-baba-aaf4f84d72d7", "OrdinaryDiffEqDefault"),
76-
"DiffEqBase" => ("2b5f629d-d688-5b77-993f-72d75c75574e", "DiffEqBase"),
75+
"OrdinaryDiffEqDefault" => ("50262376-6c5a-4cf5-baba-aaf4f84d72d7", "OrdinaryDiffEqDefault"),
76+
"DiffEqBase" => ("2b5f629d-d688-5b77-993f-72d75c75574e", "DiffEqBase"),
7777
)
7878

7979
# ── Code generation ────────────────────────────────────────────────────
8080

8181
function generate_project_toml(cfg::SolverConfig)
82-
deps = Dict{String,String}()
83-
sources = Dict{String,String}()
82+
deps = Dict{String, String}()
83+
sources = Dict{String, String}()
8484

8585
# Add all shared deps + local packages
8686
for (pkg, (uuid, lib_subdir)) in ALL_DEPS
@@ -250,6 +250,7 @@ function run_trim_tests(solvers = SOLVER_ORDER)
250250
end
251251
end
252252
end
253+
return
253254
end
254255

255256
run_trim_tests()

0 commit comments

Comments
 (0)