Skip to content

Commit 1acb80f

Browse files
Switch from JuliaFormatter to Runic.jl for code formatting (#118)
- Update CI workflow to use fredrikekre/runic-action@v1 - Remove .JuliaFormatter.toml configuration - Format all source files with Runic.jl 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Code <noreply@anthropic.com>
1 parent 0e1551a commit 1acb80f

20 files changed

Lines changed: 594 additions & 437 deletions

.JuliaFormatter.toml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/FormatCheck.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
1-
name: "Format Check"
1+
name: format-check
22

33
on:
44
push:
55
branches:
66
- 'master'
7+
- 'main'
8+
- 'release-'
79
tags: '*'
810
pull_request:
911

1012
jobs:
11-
format-check:
12-
name: "Format Check"
13-
uses: "SciML/.github/.github/workflows/format-check.yml@v1"
13+
runic:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: fredrikekre/runic-action@v1
18+
with:
19+
version: '1'

docs/make.jl

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,20 @@ cp("./docs/Project.toml", "./docs/src/assets/Project.toml", force = true)
55

66
include("pages.jl")
77

8-
makedocs(sitename = "MultiScaleArrays.jl",
8+
makedocs(
9+
sitename = "MultiScaleArrays.jl",
910
authors = "Chris Rackauckas",
1011
modules = [MultiScaleArrays],
1112
clean = true, doctest = false, linkcheck = true,
1213
warnonly = [:missing_docs],
13-
format = Documenter.HTML(assets = ["assets/favicon.ico"],
14-
canonical = "https://docs.sciml.ai/MultiScaleArrays/stable/"),
15-
pages = pages)
14+
format = Documenter.HTML(
15+
assets = ["assets/favicon.ico"],
16+
canonical = "https://docs.sciml.ai/MultiScaleArrays/stable/"
17+
),
18+
pages = pages
19+
)
1620

17-
deploydocs(repo = "github.com/SciML/MultiScaleArrays.jl.git";
18-
push_preview = true)
21+
deploydocs(
22+
repo = "github.com/SciML/MultiScaleArrays.jl.git";
23+
push_preview = true
24+
)

docs/pages.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
pages = [
44
"Home" => "index.md",
5-
"multiscalearray.md"
5+
"multiscalearray.md",
66
]

ext/MultiScaleArraysSparseDiffToolsExt.jl

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,44 @@ using MultiScaleArrays, SparseDiffTools
44

55
function MultiScaleArrays.add_node_jac_config!(
66
cache, config::SparseDiffTools.ForwardColorJacCache, i, x,
7-
node...)
7+
node...
8+
)
89
@assert cache.jac_config.colorvec isa UnitRange
9-
cache.jac_config = SparseDiffTools.ForwardColorJacCache(cache.uf, cache.uprev,
10-
config.chunksize)
11-
nothing
10+
cache.jac_config = SparseDiffTools.ForwardColorJacCache(
11+
cache.uf, cache.uprev,
12+
config.chunksize
13+
)
14+
return nothing
1215
end
1316

1417
function MultiScaleArrays.add_node_jac_config!(cache, config::SparseDiffTools.ForwardColorJacCache, i, x)
1518
@assert cache.jac_config.colorvec isa UnitRange
16-
cache.jac_config = SparseDiffTools.ForwardColorJacCache(cache.uf, cache.uprev,
17-
config.chunksize)
18-
nothing
19+
cache.jac_config = SparseDiffTools.ForwardColorJacCache(
20+
cache.uf, cache.uprev,
21+
config.chunksize
22+
)
23+
return nothing
1924
end
2025

2126
function MultiScaleArrays.remove_node_jac_config!(
2227
cache, config::SparseDiffTools.ForwardColorJacCache, i, x,
23-
node...)
28+
node...
29+
)
2430
@assert cache.jac_config.colorvec isa UnitRange
25-
cache.jac_config = SparseDiffTools.ForwardColorJacCache(cache.uf, cache.uprev,
26-
config.chunksize)
27-
nothing
31+
cache.jac_config = SparseDiffTools.ForwardColorJacCache(
32+
cache.uf, cache.uprev,
33+
config.chunksize
34+
)
35+
return nothing
2836
end
2937

3038
function MultiScaleArrays.remove_node_jac_config!(cache, config::SparseDiffTools.ForwardColorJacCache, i, x)
3139
@assert cache.jac_config.colorvec isa UnitRange
32-
cache.jac_config = SparseDiffTools.ForwardColorJacCache(cache.uf, cache.uprev,
33-
config.chunksize)
34-
nothing
40+
cache.jac_config = SparseDiffTools.ForwardColorJacCache(
41+
cache.uf, cache.uprev,
42+
config.chunksize
43+
)
44+
return nothing
3545
end
3646

3747
end

0 commit comments

Comments
 (0)