Skip to content

Commit

Permalink
Update precommit (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos authored Dec 8, 2024
1 parent 07abef5 commit 419618f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .JuliaFormatter.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# See https://domluna.github.io/JuliaFormatter.jl/stable/ for a list of options
style = "blue"
ignore = ["templates"]
ignore = ["templates/*"]
indent = 2
9 changes: 6 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ repos:
hooks:
- id: check-merge-conflict
- id: check-toml
exclude: (/.*)?templates(/.*)?$
- id: check-yaml
exclude: (/.*)?templates(/.*)?$
- id: end-of-file-fixer
exclude_types: [markdown] # incompatible with Literate.jl
- repo: https://github.com/qiaojunfeng/pre-commit-julia-format
rev: v0.2.0

- repo: "https://github.com/domluna/JuliaFormatter.jl"
rev: v1.0.62
hooks:
- id: julia-format
- id: "julia-formatter"
7 changes: 4 additions & 3 deletions templates/precommit/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ repos:
- id: check-yaml
- id: end-of-file-fixer
exclude_types: [markdown] # incompatible with Literate.jl
- repo: https://github.com/qiaojunfeng/pre-commit-julia-format
rev: v0.2.0

- repo: "https://github.com/domluna/JuliaFormatter.jl"
rev: v1.0.62
hooks:
- id: julia-format
- id: "julia-formatter"

0 comments on commit 419618f

Please sign in to comment.