Skip to content

Commit 34bcd9d

Browse files
authored
Update to JuliaFormatter v2 (#37)
1 parent 166502a commit 34bcd9d

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/format_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
shell: julia --color=yes {0}
1919
run: |
2020
using Pkg
21-
Pkg.add(PackageSpec(name="JuliaFormatter", version="1"))
21+
Pkg.add(PackageSpec(name="JuliaFormatter", version="2"))
2222
using JuliaFormatter
2323
format(".", verbose=true)
2424
out = String(read(Cmd(`git diff`)))

test/runtests.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ const dense_A = [
6767
MOI.ConstraintIndex{
6868
MOI.ScalarAffineFunction{Float64},
6969
MOI.EqualTo{Float64},
70-
}.(1:2),
70+
}.(
71+
1:2,
72+
),
7173
con_names,
7274
)
7375
return MOIT.util_test_models_equal(
@@ -146,7 +148,9 @@ const dense_A = [
146148
MOI.ConstraintIndex{
147149
MOI.ScalarAffineFunction{Float64},
148150
MOI.LessThan{Float64},
149-
}.(1:2),
151+
}.(
152+
1:2,
153+
),
150154
con_names,
151155
)
152156
return MOIT.util_test_models_equal(

0 commit comments

Comments
 (0)