Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 14 additions & 15 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
ci:
skip: [runic]

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
- repo: local
hooks:
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
exclude_types: [markdown] # incompatible with Literate.jl

- repo: https://github.com/fredrikekre/runic-pre-commit
rev: v2.0.1
hooks:
- id: runic
- id: itensor-formatter
name: "ITensor Formatter"
entry: "itfmt"
pass_filenames: true
always_run: false
types: [file]
files: \.(jl|[jq]?md)$
exclude: '^test/'
language: "system"
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
9 changes: 9 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- id: itensor-formatter
name: "ITensor Formatter"
entry: "itfmt"
pass_filenames: true
always_run: false
types: [file]
files: \.(jl|[jq]?md)$
language: "system"
description: "Code formatter for the ITensor ecosystem built on Runic and JuliaFormatter."
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "ITensorFormatter"
uuid = "b6bf39f1-c9d3-4bad-aad8-593d802f65fd"
version = "0.2.4"
version = "0.2.5"
authors = ["ITensor developers <support@itensor.org> and contributors"]

[workspace]
Expand Down
1 change: 0 additions & 1 deletion test/test_basics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ end
@test ret == 0
end
@test contains(output, "itfmt version")
@test contains(output, string(pkgversion(ITensorFormatter)))
end

@testset "unsupported option" begin
Expand Down
Loading