From 2bddfb9a74032c48cc57cecd57f7f2b39ef105a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Sat, 17 Jan 2026 09:46:51 +0100 Subject: [PATCH] Update to JuliaFormatter v2 --- .github/workflows/format_check.yml | 2 +- test/runtests.jl | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/format_check.yml b/.github/workflows/format_check.yml index c4482c2..c0435ca 100644 --- a/.github/workflows/format_check.yml +++ b/.github/workflows/format_check.yml @@ -18,7 +18,7 @@ jobs: shell: julia --color=yes {0} run: | using Pkg - Pkg.add(PackageSpec(name="JuliaFormatter", version="1")) + Pkg.add(PackageSpec(name="JuliaFormatter", version="2")) using JuliaFormatter format(".", verbose=true) out = String(read(Cmd(`git diff`))) diff --git a/test/runtests.jl b/test/runtests.jl index 308ff0a..6f9c3fc 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -67,7 +67,9 @@ const dense_A = [ MOI.ConstraintIndex{ MOI.ScalarAffineFunction{Float64}, MOI.EqualTo{Float64}, - }.(1:2), + }.( + 1:2, + ), con_names, ) return MOIT.util_test_models_equal( @@ -146,7 +148,9 @@ const dense_A = [ MOI.ConstraintIndex{ MOI.ScalarAffineFunction{Float64}, MOI.LessThan{Float64}, - }.(1:2), + }.( + 1:2, + ), con_names, ) return MOIT.util_test_models_equal(