Skip to content

Commit 117c6df

Browse files
authored
Merge pull request #43 from jpthiele/precommit
[CI/Infra] Add pre-commit to repo
2 parents c56b241 + 914220b commit 117c6df

25 files changed

+47
-41
lines changed

.JuliaFormatter.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ format_markdown = true
44
import_to_using = false
55
pipe_to_function_call = false
66
short_to_long_function_def = false
7-
always_use_return = false
7+
always_use_return = false

.codespellrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[codespell]
2-
ignore-words-list = missings,rcall,linke,fo,COO,alledges
2+
ignore-words-list = missings,rcall,linke,fo,coo,alledges

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ jobs:
7676
env:
7777
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7878
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
79-
79+

.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/[email protected]

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ docs/build
44
Manifest*.toml
55
.repl_history
66
quarry
7-

.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

.zenodo.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@
2020
"license": "MIT",
2121
"upload_type": "software"
2222
}
23-

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,3 @@ Introducd 1.9 extensions
5656

5757
- Implement AbstractSparseMatrixCSC interface.
5858
- Remove extension of LinearSolve methodsa
59-

docs/src/linearsolve.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,3 @@ y = LinearSolve.solve(LinearProblem(A, b), KrylovJL_CG();
149149
Pl = ILUZero.ilu0(SparseMatrixCSC(A))).u
150150
sum(y)
151151
```
152-

ext/ExtendableSparseIncompleteLUExt.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,3 @@ function update!(precon::ILUTPreconditioner)
4242
end
4343

4444
end
45-

0 commit comments

Comments
 (0)