Skip to content

Commit e8c01d6

Browse files
authored
Merge pull request #33 from WIAS-PDELib/feature/runic
Add Runic Code Quality check and badge
2 parents 5f604e9 + a53680f commit e8c01d6

25 files changed

+1276
-1260
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ repos:
1919
rev: v2.4.1
2020
hooks:
2121
- id: codespell
22+
- repo: https://github.com/fredrikekre/runic-pre-commit
23+
rev: v1.0.0
24+
hooks:
25+
- id: runic

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://wias-pdelib.github.io/ExtendableFEMBase.jl/stable/index.html)
33
[![](https://img.shields.io/badge/docs-dev-blue.svg)](https://wias-pdelib.github.io/ExtendableFEMBase.jl/dev/index.html)
44
[![DOI](https://zenodo.org/badge/667751152.svg)](https://zenodo.org/doi/10.5281/zenodo.10563410)
5+
[![code style: runic](https://img.shields.io/badge/code_style-%E1%9A%B1%E1%9A%A2%E1%9A%BE%E1>
56

67
# ExtendableFEMBase
78

docs/make.jl

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,42 +7,42 @@ using CairoMakie
77

88
function make_all(; with_examples::Bool = true)
99

10-
module_examples = []
11-
pluto_examples = []
10+
module_examples = []
11+
pluto_examples = []
1212

1313
if with_examples
14-
15-
DocMeta.setdocmeta!(ExampleJuggler, :DocTestSetup, :(using ExampleJuggler); recursive = true)
16-
17-
example_dir = joinpath(@__DIR__, "..", "examples")
18-
pluto_example_dir = joinpath(@__DIR__, "..", "pluto-examples")
19-
20-
modules = [
21-
"Example200_LowLevelPoisson.jl",
22-
"Example205_LowLevelSpaceTimePoisson.jl",
23-
"Example210_LowLevelNavierStokes.jl",
24-
"Example280_BasisPlotter.jl",
25-
"Example281_DiscontinuousPlot.jl",
26-
"Example290_InterpolationBetweenMeshes.jl",
27-
]
28-
14+
15+
DocMeta.setdocmeta!(ExampleJuggler, :DocTestSetup, :(using ExampleJuggler); recursive = true)
16+
17+
example_dir = joinpath(@__DIR__, "..", "examples")
18+
pluto_example_dir = joinpath(@__DIR__, "..", "pluto-examples")
19+
20+
modules = [
21+
"Example200_LowLevelPoisson.jl",
22+
"Example205_LowLevelSpaceTimePoisson.jl",
23+
"Example210_LowLevelNavierStokes.jl",
24+
"Example280_BasisPlotter.jl",
25+
"Example281_DiscontinuousPlot.jl",
26+
"Example290_InterpolationBetweenMeshes.jl",
27+
]
28+
2929
notebooks = [
3030
"Low level Poisson" => "LowLevelPoisson.jl"
3131
"Low level Navier-Stokes" => "LowLevelNavierStokes.jl"
3232
]
3333

34-
cleanexamples()
34+
cleanexamples()
3535

36-
module_examples = @docmodules(example_dir, modules, Plotter = CairoMakie)
37-
pluto_examples = @docplutonotebooks(pluto_example_dir, notebooks, iframe=false)
36+
module_examples = @docmodules(example_dir, modules, Plotter = CairoMakie)
37+
pluto_examples = @docplutonotebooks(pluto_example_dir, notebooks, iframe = false)
3838
pushfirst!(module_examples, "Introduction" => "examples_intro.md")
3939

4040
end
4141

4242
makedocs(
43-
modules=[ExtendableFEMBase],
44-
sitename="ExtendableFEMBase.jl",
45-
authors="Christian Merdon",
43+
modules = [ExtendableFEMBase],
44+
sitename = "ExtendableFEMBase.jl",
45+
authors = "Christian Merdon",
4646
format = Documenter.HTML(repolink = "https://github.com/WIAS-PDELib/ExtendableFEMBase.jl", size_threshold = 250000, mathengine = MathJax3()),
4747
clean = false,
4848
checkdocs = :none, # :all or :exports currently causes UndefVarError
@@ -53,26 +53,26 @@ function make_all(; with_examples::Bool = true)
5353
"Index" => "package_index.md",
5454
"List of Finite Elements" => "fems.md",
5555
"Base Structures" => Any[
56-
"fespace.md",
57-
"fevector.md",
58-
"fematrix.md",
59-
"functionoperators.md",
60-
"feevaluator.md",
61-
"interpolations.md",
62-
"quadrature.md"
63-
],
56+
"fespace.md",
57+
"fevector.md",
58+
"fematrix.md",
59+
"functionoperators.md",
60+
"feevaluator.md",
61+
"interpolations.md",
62+
"quadrature.md",
63+
],
6464
"Advanced Stuff" => Any[
6565
"pointevaluators.md",
6666
"segmentintegrators.md",
67-
"plots.md"
67+
"plots.md",
6868
],
6969
"Tutorial Notebooks" => pluto_examples,
7070
"Examples" => module_examples,
7171
]
7272
)
7373

74-
cleanexamples()
75-
74+
return cleanexamples()
75+
7676
end
7777

7878
make_all(; with_examples = true)

0 commit comments

Comments
 (0)