diff --git a/.JuliaFormatter.toml b/.JuliaFormatter.toml index 376ec44..82c6fca 100644 --- a/.JuliaFormatter.toml +++ b/.JuliaFormatter.toml @@ -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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bff1fb7..daf5b40 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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" diff --git a/templates/precommit/.pre-commit-config.yaml b/templates/precommit/.pre-commit-config.yaml index bff1fb7..6599365 100644 --- a/templates/precommit/.pre-commit-config.yaml +++ b/templates/precommit/.pre-commit-config.yaml @@ -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"