Skip to content

Commit 66bb416

Browse files
committed
Switch from JuliaFormatter to Runic.jl for code formatting
- 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 Opus 4.5 <noreply@anthropic.com>
1 parent 6da2fb7 commit 66bb416

File tree

11 files changed

+364
-270
lines changed

11 files changed

+364
-270
lines changed

.JuliaFormatter.toml

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

.github/workflows/FormatCheck.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: format-check
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
- 'main'
8+
- 'release-'
9+
tags: '*'
10+
pull_request:
11+
12+
jobs:
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: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
using OrdinaryDiffEqOperatorSplitting
22
using Documenter, DocumenterCitations
33

4-
DocMeta.setdocmeta!(OrdinaryDiffEqOperatorSplitting, :DocTestSetup,
5-
:(using OrdinaryDiffEqOperatorSplitting); recursive = true)
4+
DocMeta.setdocmeta!(
5+
OrdinaryDiffEqOperatorSplitting, :DocTestSetup,
6+
:(using OrdinaryDiffEqOperatorSplitting); recursive = true
7+
)
68

79
const is_ci = haskey(ENV, "GITHUB_ACTIONS")
810

@@ -16,7 +18,7 @@ makedocs(
1618
format = Documenter.HTML(
1719
assets = [
1820
"assets/citations.css",
19-
# "assets/favicon.ico"
21+
# "assets/favicon.ico"
2022
],
2123
# canonical = "https://localhost/",
2224
collapselevel = 1
@@ -31,7 +33,7 @@ makedocs(
3133
"Theory Manual" => "topics/time-integration.md",
3234
"api-reference/index.md",
3335
"devdocs/index.md",
34-
"references.md"
36+
"references.md",
3537
],
3638
plugins = [
3739
bibtex_plugin,
@@ -45,6 +47,6 @@ deploydocs(
4547
devbranch = "main",
4648
versions = [
4749
"stable" => "v^",
48-
"dev" => "dev"
50+
"dev" => "dev",
4951
]
5052
)

src/function.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
This type of function describes a set of connected inner functions in mass-matrix form, as usually found in operator splitting procedures.
66
"""
77
struct GenericSplitFunction{fSetType <: Tuple, idxSetType <: Tuple, sSetType <: Tuple} <:
8-
AbstractOperatorSplitFunction
8+
AbstractOperatorSplitFunction
99
# Tuple containing the atomic ode functions or further nested split functions.
1010
functions::fSetType
1111
# The ranges for the values in the solution vector.
@@ -14,7 +14,7 @@ struct GenericSplitFunction{fSetType <: Tuple, idxSetType <: Tuple, sSetType <:
1414
synchronizers::sSetType
1515
function GenericSplitFunction(fs::Tuple, drs::Tuple, syncers::Tuple)
1616
@assert length(fs) == length(drs) == length(syncers)
17-
new{typeof(fs), typeof(drs), typeof(syncers)}(fs, drs, syncers)
17+
return new{typeof(fs), typeof(drs), typeof(syncers)}(fs, drs, syncers)
1818
end
1919
end
2020

@@ -28,7 +28,7 @@ Indicator that no synchronization between parameters and solution vectors is nec
2828
struct NoExternalSynchronization end
2929

3030
function GenericSplitFunction(fs::Tuple, drs::Tuple)
31-
GenericSplitFunction(fs, drs, ntuple(_->NoExternalSynchronization(), length(fs)))
31+
return GenericSplitFunction(fs, drs, ntuple(_ -> NoExternalSynchronization(), length(fs)))
3232
end
3333

3434
@inline get_operator(f::GenericSplitFunction, i::Integer) = f.functions[i]

0 commit comments

Comments
 (0)