Skip to content

Commit 33a569d

Browse files
github-actions[bot]mtfishmanlkdvos
authored
Automatic Runic.jl run (#179)
Co-authored-by: mtfishman <[email protected]> Co-authored-by: Lukas Devos <[email protected]>
1 parent 6d7085d commit 33a569d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+5169
-5155
lines changed

.JuliaFormatter.toml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/CompatHelper.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "CompatHelper"
22

33
on:
44
schedule:
5-
- cron: 0 0 * * *
5+
- cron: '0 0 * * *'
66
workflow_dispatch:
77
permissions:
88
contents: write

.github/workflows/FormatCheck.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
name: "Format Check"
22

33
on:
4-
push:
5-
branches:
6-
- 'main'
7-
tags: '*'
8-
pull_request:
4+
pull_request_target:
5+
paths: ['**/*.jl']
6+
types: [opened, synchronize, reopened, ready_for_review]
7+
8+
permissions:
9+
contents: read
10+
actions: write
11+
pull-requests: write
912

1013
jobs:
1114
format-check:

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ci:
2-
skip: [julia-formatter]
2+
skip: [runic]
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
@@ -11,7 +11,7 @@ repos:
1111
- id: end-of-file-fixer
1212
exclude_types: [markdown] # incompatible with Literate.jl
1313

14-
- repo: "https://github.com/domluna/JuliaFormatter.jl"
15-
rev: v2.1.6
14+
- repo: https://github.com/fredrikekre/runic-pre-commit
15+
rev: v2.0.1
1616
hooks:
17-
- id: "julia-formatter"
17+
- id: runic

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "BlockSparseArrays"
22
uuid = "2c9a651f-6452-4ace-a6ac-809f4280fbb4"
33
authors = ["ITensor developers <[email protected]> and contributors"]
4-
version = "0.10.6"
4+
version = "0.10.7"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ This step is only required once.
2727
```julia
2828
julia> using Pkg: Pkg
2929

30-
julia> Pkg.Registry.add(url="https://github.com/ITensor/ITensorRegistry")
30+
julia> Pkg.Registry.add(url = "https://github.com/ITensor/ITensorRegistry")
3131
```
3232
or:
3333
```julia
34-
julia> Pkg.Registry.add(url="[email protected]:ITensor/ITensorRegistry.git")
34+
julia> Pkg.Registry.add(url = "[email protected]:ITensor/ITensorRegistry.git")
3535
```
3636
if you want to use SSH credentials, which can make it so you don't have to enter your Github ursername and password when registering packages.
3737

docs/make.jl

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@ using BlockSparseArrays: BlockSparseArrays
22
using Documenter: Documenter, DocMeta, deploydocs, makedocs
33

44
DocMeta.setdocmeta!(
5-
BlockSparseArrays, :DocTestSetup, quote
6-
using BlockSparseArrays
7-
using LinearAlgebra: Diagonal
8-
end; recursive=true
5+
BlockSparseArrays, :DocTestSetup, quote
6+
using BlockSparseArrays
7+
using LinearAlgebra: Diagonal
8+
end; recursive = true
99
)
1010

1111
include("make_index.jl")
1212

1313
makedocs(;
14-
modules=[BlockSparseArrays],
15-
authors="ITensor developers <[email protected]> and contributors",
16-
sitename="BlockSparseArrays.jl",
17-
format=Documenter.HTML(;
18-
canonical="https://ITensor.github.io/BlockSparseArrays.jl",
19-
edit_link="main",
20-
assets=["assets/favicon.ico", "assets/extras.css"],
21-
),
22-
pages=["Home" => "index.md", "Reference" => "reference.md"],
14+
modules = [BlockSparseArrays],
15+
authors = "ITensor developers <[email protected]> and contributors",
16+
sitename = "BlockSparseArrays.jl",
17+
format = Documenter.HTML(;
18+
canonical = "https://itensor.github.io/BlockSparseArrays.jl",
19+
edit_link = "main",
20+
assets = ["assets/favicon.ico", "assets/extras.css"],
21+
),
22+
pages = ["Home" => "index.md", "Reference" => "reference.md"],
2323
)
2424

2525
deploydocs(;
26-
repo="github.com/ITensor/BlockSparseArrays.jl", devbranch="main", push_preview=true
26+
repo = "github.com/ITensor/BlockSparseArrays.jl", devbranch = "main", push_preview = true
2727
)

docs/make_index.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ using Literate: Literate
22
using BlockSparseArrays: BlockSparseArrays
33

44
function ccq_logo(content)
5-
include_ccq_logo = """
5+
include_ccq_logo = """
66
```@raw html
77
<img class="display-light-only" src="assets/CCQ.png" width="20%" alt="Flatiron Center for Computational Quantum Physics logo."/>
88
<img class="display-dark-only" src="assets/CCQ-dark.png" width="20%" alt="Flatiron Center for Computational Quantum Physics logo."/>
99
```
1010
"""
11-
content = replace(content, "{CCQ_LOGO}" => include_ccq_logo)
12-
return content
11+
content = replace(content, "{CCQ_LOGO}" => include_ccq_logo)
12+
return content
1313
end
1414

1515
Literate.markdown(
16-
joinpath(pkgdir(BlockSparseArrays), "examples", "README.jl"),
17-
joinpath(pkgdir(BlockSparseArrays), "docs", "src");
18-
flavor=Literate.DocumenterFlavor(),
19-
name="index",
20-
postprocess=ccq_logo,
16+
joinpath(pkgdir(BlockSparseArrays), "examples", "README.jl"),
17+
joinpath(pkgdir(BlockSparseArrays), "docs", "src");
18+
flavor = Literate.DocumenterFlavor(),
19+
name = "index",
20+
postprocess = ccq_logo,
2121
)

docs/make_readme.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ using Literate: Literate
22
using BlockSparseArrays: BlockSparseArrays
33

44
function ccq_logo(content)
5-
include_ccq_logo = """
5+
include_ccq_logo = """
66
<picture>
77
<source media="(prefers-color-scheme: dark)" width="20%" srcset="docs/src/assets/CCQ-dark.png">
88
<img alt="Flatiron Center for Computational Quantum Physics logo." width="20%" src="docs/src/assets/CCQ.png">
99
</picture>
1010
"""
11-
content = replace(content, "{CCQ_LOGO}" => include_ccq_logo)
12-
return content
11+
content = replace(content, "{CCQ_LOGO}" => include_ccq_logo)
12+
return content
1313
end
1414

1515
Literate.markdown(
16-
joinpath(pkgdir(BlockSparseArrays), "examples", "README.jl"),
17-
joinpath(pkgdir(BlockSparseArrays));
18-
flavor=Literate.CommonMarkFlavor(),
19-
name="README",
20-
postprocess=ccq_logo,
16+
joinpath(pkgdir(BlockSparseArrays), "examples", "README.jl"),
17+
joinpath(pkgdir(BlockSparseArrays));
18+
flavor = Literate.CommonMarkFlavor(),
19+
name = "README",
20+
postprocess = ccq_logo,
2121
)

examples/README.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# # BlockSparseArrays.jl
2-
#
2+
#
33
# [![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://itensor.github.io/BlockSparseArrays.jl/stable/)
44
# [![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://itensor.github.io/BlockSparseArrays.jl/dev/)
55
# [![Build Status](https://github.com/ITensor/BlockSparseArrays.jl/actions/workflows/Tests.yml/badge.svg?branch=main)](https://github.com/ITensor/BlockSparseArrays.jl/actions/workflows/Tests.yml?query=branch%3Amain)
@@ -24,13 +24,13 @@
2424
```julia
2525
julia> using Pkg: Pkg
2626
27-
julia> Pkg.Registry.add(url="https://github.com/ITensor/ITensorRegistry")
27+
julia> Pkg.Registry.add(url = "https://github.com/ITensor/ITensorRegistry")
2828
```
2929
=#
3030
# or:
3131
#=
3232
```julia
33-
julia> Pkg.Registry.add(url="[email protected]:ITensor/ITensorRegistry.git")
33+
julia> Pkg.Registry.add(url = "[email protected]:ITensor/ITensorRegistry.git")
3434
```
3535
=#
3636
# if you want to use SSH credentials, which can make it so you don't have to enter your Github ursername and password when registering packages.

0 commit comments

Comments
 (0)