From 493ba5de2af69e9cc4719c88da0069bb43c70887 Mon Sep 17 00:00:00 2001 From: MaxenceGollier Date: Fri, 20 Feb 2026 21:10:03 +0000 Subject: [PATCH] :robot: Format .jl files --- src/types.jl | 5 ++--- test/runtests.jl | 9 ++++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/types.jl b/src/types.jl index c993c79..2fadd65 100644 --- a/src/types.jl +++ b/src/types.jl @@ -65,11 +65,10 @@ function NLPModels.hess_op(rnlp::AbstractRegularizedNLPModel, x::AbstractVector) return hess_op(rnlp.model, x) end -function NLPModels.hess(rnlp::AbstractRegularizedNLPModel, x::AbstractVector; obj_weight=1.0) - return hess(rnlp.model, x; obj_weight=obj_weight) +function NLPModels.hess(rnlp::AbstractRegularizedNLPModel, x::AbstractVector; obj_weight = 1.0) + return hess(rnlp.model, x; obj_weight = obj_weight) end - # Forward meta getters so they grab info from the smooth model for field ∈ fieldnames(NLPModels.NLPModelMeta) meth = Symbol("get_", field) diff --git a/test/runtests.jl b/test/runtests.jl index 9137b9f..26f6d60 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,5 +1,12 @@ using LinearAlgebra, Test -using ADNLPModels, DifferentialEquations, LinearOperators, ManualNLPModels, MLDatasets, NLPModels, NLPModelsModifiers, QuadraticModels +using ADNLPModels, + DifferentialEquations, + LinearOperators, + ManualNLPModels, + MLDatasets, + NLPModels, + NLPModelsModifiers, + QuadraticModels using RegularizedProblems function test_well_defined(model, nls_model, sol)