Skip to content

Commit 419618f

Browse files
authored
Update precommit (#40)
1 parent 07abef5 commit 419618f

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.JuliaFormatter.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# See https://domluna.github.io/JuliaFormatter.jl/stable/ for a list of options
22
style = "blue"
3-
ignore = ["templates"]
3+
ignore = ["templates/*"]
44
indent = 2

.pre-commit-config.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ repos:
44
hooks:
55
- id: check-merge-conflict
66
- id: check-toml
7+
exclude: (/.*)?templates(/.*)?$
78
- id: check-yaml
9+
exclude: (/.*)?templates(/.*)?$
810
- id: end-of-file-fixer
911
exclude_types: [markdown] # incompatible with Literate.jl
10-
- repo: https://github.com/qiaojunfeng/pre-commit-julia-format
11-
rev: v0.2.0
12+
13+
- repo: "https://github.com/domluna/JuliaFormatter.jl"
14+
rev: v1.0.62
1215
hooks:
13-
- id: julia-format
16+
- id: "julia-formatter"

templates/precommit/.pre-commit-config.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ repos:
77
- id: check-yaml
88
- id: end-of-file-fixer
99
exclude_types: [markdown] # incompatible with Literate.jl
10-
- repo: https://github.com/qiaojunfeng/pre-commit-julia-format
11-
rev: v0.2.0
10+
11+
- repo: "https://github.com/domluna/JuliaFormatter.jl"
12+
rev: v1.0.62
1213
hooks:
13-
- id: julia-format
14+
- id: "julia-formatter"

0 commit comments

Comments
 (0)