From a343030c85ab74c22a234fcfdc2350c5039776fe Mon Sep 17 00:00:00 2001 From: mtfishman Date: Fri, 27 Feb 2026 17:32:29 -0500 Subject: [PATCH 01/11] Modify FormatPullRequest to allow for format comments --- .github/workflows/FormatPullRequest.yml | 2 ++ Project.toml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/FormatPullRequest.yml b/.github/workflows/FormatPullRequest.yml index b9a329c..e55bfff 100644 --- a/.github/workflows/FormatPullRequest.yml +++ b/.github/workflows/FormatPullRequest.yml @@ -3,6 +3,8 @@ on: schedule: - cron: "0 0 * * *" workflow_dispatch: ~ + issue_comment: + types: ["created"] permissions: contents: "write" pull-requests: "write" diff --git a/Project.toml b/Project.toml index a5a4334..1525302 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "SparseArraysBase" uuid = "0d5efcca-f356-4864-8770-e1ed8d78f208" -version = "0.9.19" +version = "0.9.20" authors = ["ITensor developers and contributors"] [workspace] From 42b208623203b309b08f6ab70ba0a8b65939ae24 Mon Sep 17 00:00:00 2001 From: mtfishman Date: Fri, 27 Feb 2026 17:33:00 -0500 Subject: [PATCH 02/11] Format --- .github/workflows/FormatPullRequest.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/FormatPullRequest.yml b/.github/workflows/FormatPullRequest.yml index e55bfff..8a8af44 100644 --- a/.github/workflows/FormatPullRequest.yml +++ b/.github/workflows/FormatPullRequest.yml @@ -4,7 +4,8 @@ on: - cron: "0 0 * * *" workflow_dispatch: ~ issue_comment: - types: ["created"] + types: + - "created" permissions: contents: "write" pull-requests: "write" From 36599ac387a7b25fa999072ab397c1feaca29a06 Mon Sep 17 00:00:00 2001 From: mtfishman Date: Fri, 27 Feb 2026 17:36:44 -0500 Subject: [PATCH 03/11] Introduce badly formatted code --- src/SparseArraysBase.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SparseArraysBase.jl b/src/SparseArraysBase.jl index 0f5ce2f..af940ed 100644 --- a/src/SparseArraysBase.jl +++ b/src/SparseArraysBase.jl @@ -1,5 +1,9 @@ module SparseArraysBase +function f() + 3 +end + export SparseArrayDOK, SparseMatrixDOK, SparseVectorDOK, From ce07c2a7985f03334a01da521b53f819544a5b0e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 27 Feb 2026 22:42:39 +0000 Subject: [PATCH 04/11] Format .jl files (ITensorFormatter) --- src/SparseArraysBase.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SparseArraysBase.jl b/src/SparseArraysBase.jl index af940ed..c3570d0 100644 --- a/src/SparseArraysBase.jl +++ b/src/SparseArraysBase.jl @@ -1,7 +1,7 @@ module SparseArraysBase function f() - 3 + return 3 end export SparseArrayDOK, From 7d430d0a1d6c960eac19fa6eb9cdc464f4a2bf2b Mon Sep 17 00:00:00 2001 From: mtfishman Date: Fri, 27 Feb 2026 17:50:03 -0500 Subject: [PATCH 05/11] Unformat --- src/SparseArraysBase.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SparseArraysBase.jl b/src/SparseArraysBase.jl index c3570d0..af940ed 100644 --- a/src/SparseArraysBase.jl +++ b/src/SparseArraysBase.jl @@ -1,7 +1,7 @@ module SparseArraysBase function f() - return 3 + 3 end export SparseArrayDOK, From 155ef8210984f81f99e5d7a3828ccfd0d95180c5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 27 Feb 2026 22:56:04 +0000 Subject: [PATCH 06/11] Format .jl files (ITensorFormatter) --- src/SparseArraysBase.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SparseArraysBase.jl b/src/SparseArraysBase.jl index af940ed..c3570d0 100644 --- a/src/SparseArraysBase.jl +++ b/src/SparseArraysBase.jl @@ -1,7 +1,7 @@ module SparseArraysBase function f() - 3 + return 3 end export SparseArrayDOK, From 66d02bd2c605b1e3f045b571e818cf5c0eec9f60 Mon Sep 17 00:00:00 2001 From: Matt Fishman Date: Fri, 27 Feb 2026 18:14:01 -0500 Subject: [PATCH 07/11] Mess up formatting --- src/sparsearrays.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sparsearrays.jl b/src/sparsearrays.jl index e8f7b7c..b7af497 100644 --- a/src/sparsearrays.jl +++ b/src/sparsearrays.jl @@ -1,7 +1,7 @@ using SparseArrays: SparseArrays, AbstractSparseMatrixCSC, SparseMatrixCSC, findnz function eachstoredindex(m::AbstractSparseMatrixCSC) - I, J, V = findnz(m) + I, J, V = findnz(m) # TODO: This loses the compile time element type, is there a better lazy way? return Iterators.map(CartesianIndex, zip(I, J)) end From 102e59144845231d7d5a229b604d5f04b8431a08 Mon Sep 17 00:00:00 2001 From: Matt Fishman Date: Fri, 27 Feb 2026 18:14:26 -0500 Subject: [PATCH 08/11] Cleanup Removed unused function 'f' from SparseArraysBase module. --- src/SparseArraysBase.jl | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/SparseArraysBase.jl b/src/SparseArraysBase.jl index c3570d0..0f5ce2f 100644 --- a/src/SparseArraysBase.jl +++ b/src/SparseArraysBase.jl @@ -1,9 +1,5 @@ module SparseArraysBase -function f() - return 3 -end - export SparseArrayDOK, SparseMatrixDOK, SparseVectorDOK, From 68620120548a9e580a6b1d4b8072b30141466fed Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 28 Feb 2026 00:23:11 +0000 Subject: [PATCH 09/11] Format .jl files (ITensorFormatter) --- src/sparsearrays.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sparsearrays.jl b/src/sparsearrays.jl index b7af497..e8f7b7c 100644 --- a/src/sparsearrays.jl +++ b/src/sparsearrays.jl @@ -1,7 +1,7 @@ using SparseArrays: SparseArrays, AbstractSparseMatrixCSC, SparseMatrixCSC, findnz function eachstoredindex(m::AbstractSparseMatrixCSC) - I, J, V = findnz(m) + I, J, V = findnz(m) # TODO: This loses the compile time element type, is there a better lazy way? return Iterators.map(CartesianIndex, zip(I, J)) end From 563ed44ad286b614c91a7269c2d65d3014d249b6 Mon Sep 17 00:00:00 2001 From: Matt Fishman Date: Fri, 27 Feb 2026 19:36:57 -0500 Subject: [PATCH 10/11] Unformat --- src/sparsearrays.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sparsearrays.jl b/src/sparsearrays.jl index e8f7b7c..b7af497 100644 --- a/src/sparsearrays.jl +++ b/src/sparsearrays.jl @@ -1,7 +1,7 @@ using SparseArrays: SparseArrays, AbstractSparseMatrixCSC, SparseMatrixCSC, findnz function eachstoredindex(m::AbstractSparseMatrixCSC) - I, J, V = findnz(m) + I, J, V = findnz(m) # TODO: This loses the compile time element type, is there a better lazy way? return Iterators.map(CartesianIndex, zip(I, J)) end From 69d1b45b303f3423d0e2976a4bd9b7243618df8f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 28 Feb 2026 01:05:03 +0000 Subject: [PATCH 11/11] Format .jl files (ITensorFormatter) --- src/sparsearrays.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sparsearrays.jl b/src/sparsearrays.jl index b7af497..e8f7b7c 100644 --- a/src/sparsearrays.jl +++ b/src/sparsearrays.jl @@ -1,7 +1,7 @@ using SparseArrays: SparseArrays, AbstractSparseMatrixCSC, SparseMatrixCSC, findnz function eachstoredindex(m::AbstractSparseMatrixCSC) - I, J, V = findnz(m) + I, J, V = findnz(m) # TODO: This loses the compile time element type, is there a better lazy way? return Iterators.map(CartesianIndex, zip(I, J)) end