Skip to content

Commit e491f74

Browse files
authored
Merge pull request #10 from jpthiele/pre-commit
[CI/Infra] Add pre-commit to repo
2 parents c5b054d + aab37f1 commit e491f74

26 files changed

+60
-25
lines changed

.codespellrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[codespell]
2+
ignore-words-list = missings,rcall,linke,fo,bloc

.github/workflows/pre-commit.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: pre-commit
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
pre-commit:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: julia-actions/setup-julia@v2
12+
with:
13+
version: 1.11
14+
- run: |
15+
julia --project=@runic -e '
16+
using Pkg
17+
Pkg.add("Runic")'
18+
env:
19+
PYTHON: ""
20+
- uses: actions/setup-python@v5
21+
- uses: pre-commit/action@v3.0.1

.pre-commit-config.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0
4+
hooks:
5+
- id: check-added-large-files
6+
args: [--maxkb=8192]
7+
- id: check-merge-conflict
8+
- id: check-toml
9+
- id: check-yaml
10+
args: [--allow-multiple-documents]
11+
- id: end-of-file-fixer
12+
- id: no-commit-to-branch
13+
args: [--branch,master]
14+
- repo: https://github.com/gitleaks/gitleaks
15+
rev: v8.16.3
16+
hooks:
17+
- id: gitleaks
18+
- repo: https://github.com/codespell-project/codespell
19+
rev: v2.2.4
20+
hooks:
21+
- id: codespell

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ DiffResults = "163ba53b-c6d8-5494-b064-1a9d43ac40c5"
1414
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
1515

1616
[compat]
17-
Literate = ">=0.2.7"
17+
Literate = ">=0.2.7"

docs/src/examples_intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ julia> include("ExampleXXX.jl")`
2525
julia> ExampleXXX.main()
2626
```
2727
- Some examples offer visual output via the optional argument Plotter = PyPlot or Plotter = GLMakie
28-
(provided the package PyPlot/GLMakie is installed and loaded)
28+
(provided the package PyPlot/GLMakie is installed and loaded)

docs/src/feevaluator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ FEEvaluators provide a structure that handles the evaluation of finite element b
77
Modules = [ExtendableFEMBase]
88
Pages = ["feevaluator.jl"]
99
Order = [:type, :function]
10-
```
10+
```

docs/src/fematrix.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ A FEMatrix consists of FEMatrixBlocks that share a common ExtendableSparseMatrix
66
Modules = [ExtendableFEMBase]
77
Pages = ["fematrix.jl"]
88
Order = [:type, :function]
9-
```
9+
```

docs/src/fems.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,5 +255,3 @@ HCURLN1
255255
```@docs
256256
H1BUBBLE
257257
```
258-
259-

docs/src/fespace.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,3 @@ The following DofMap subtypes are available and are used as keys to access the d
2727
| EdgeDofs | degrees of freedom for each edge (in 3D) |
2828
| BFaceDofs | degrees of freedom for each boundary face |
2929
| BEdgeDofs | degrees of freedom for each boundary edge (in 3D) |
30-

docs/src/functionoperators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ as well as for the P2-bubble (H1P2B) finite element type in two dimensions.
6666

6767
## Operator Pairs (experimental)
6868

69-
Two function operators can be put into an OperatorPair so that one can provide effectively two operators in each argument of an assembly pattern. However, the user should make sure that both operators can be evaluated together reasonably (meaning both should be well-defined on the element geometries and the finite element space where the argument will be evaluated, and the action of the operator has to operate with coressponding input and result fields). This feature is still experimental and might have issues in some cases. OperatorTriple for a combination of three operators is also available.
69+
Two function operators can be put into an OperatorPair so that one can provide effectively two operators in each argument of an assembly pattern. However, the user should make sure that both operators can be evaluated together reasonably (meaning both should be well-defined on the element geometries and the finite element space where the argument will be evaluated, and the action of the operator has to operate with coressponding input and result fields). This feature is still experimental and might have issues in some cases. OperatorTriple for a combination of three operators is also available.

0 commit comments

Comments
 (0)