Skip to content

Commit 72dbffb

Browse files
mtfishmangithub-actions[bot]
authored andcommitted
Format .jl files (Runic)
1 parent e18fcbf commit 72dbffb

File tree

12 files changed

+403
-401
lines changed

12 files changed

+403
-401
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "QuantumOperatorAlgebra"
22
uuid = "c7a6d0f7-daa6-4368-ba67-89ed64127c3b"
3+
version = "0.1.4"
34
authors = ["ITensor developers <support@itensor.org> and contributors"]
4-
version = "0.1.3"
55

66
[compat]
77
julia = "1.10"

docs/make.jl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@ using QuantumOperatorAlgebra: QuantumOperatorAlgebra
22
using Documenter: Documenter, DocMeta, deploydocs, makedocs
33

44
DocMeta.setdocmeta!(
5-
QuantumOperatorAlgebra, :DocTestSetup, :(using QuantumOperatorAlgebra); recursive=true
5+
QuantumOperatorAlgebra, :DocTestSetup, :(using QuantumOperatorAlgebra); recursive = true
66
)
77

88
include("make_index.jl")
99

1010
makedocs(;
11-
modules=[QuantumOperatorAlgebra],
12-
authors="ITensor developers <support@itensor.org> and contributors",
13-
sitename="QuantumOperatorAlgebra.jl",
14-
format=Documenter.HTML(;
15-
canonical="https://itensor.github.io/QuantumOperatorAlgebra.jl",
16-
edit_link="main",
17-
assets=["assets/favicon.ico", "assets/extras.css"],
18-
),
19-
pages=["Home" => "index.md", "Reference" => "reference.md"],
11+
modules = [QuantumOperatorAlgebra],
12+
authors = "ITensor developers <support@itensor.org> and contributors",
13+
sitename = "QuantumOperatorAlgebra.jl",
14+
format = Documenter.HTML(;
15+
canonical = "https://itensor.github.io/QuantumOperatorAlgebra.jl",
16+
edit_link = "main",
17+
assets = ["assets/favicon.ico", "assets/extras.css"],
18+
),
19+
pages = ["Home" => "index.md", "Reference" => "reference.md"],
2020
)
2121

2222
deploydocs(;
23-
repo="github.com/ITensor/QuantumOperatorAlgebra.jl", devbranch="main", push_preview=true
23+
repo = "github.com/ITensor/QuantumOperatorAlgebra.jl", devbranch = "main", push_preview = true
2424
)

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 QuantumOperatorAlgebra: QuantumOperatorAlgebra
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(QuantumOperatorAlgebra), "examples", "README.jl"),
17-
joinpath(pkgdir(QuantumOperatorAlgebra), "docs", "src");
18-
flavor=Literate.DocumenterFlavor(),
19-
name="index",
20-
postprocess=ccq_logo,
16+
joinpath(pkgdir(QuantumOperatorAlgebra), "examples", "README.jl"),
17+
joinpath(pkgdir(QuantumOperatorAlgebra), "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 QuantumOperatorAlgebra: QuantumOperatorAlgebra
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(QuantumOperatorAlgebra), "examples", "README.jl"),
17-
joinpath(pkgdir(QuantumOperatorAlgebra));
18-
flavor=Literate.CommonMarkFlavor(),
19-
name="README",
20-
postprocess=ccq_logo,
16+
joinpath(pkgdir(QuantumOperatorAlgebra), "examples", "README.jl"),
17+
joinpath(pkgdir(QuantumOperatorAlgebra));
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
# # QuantumOperatorAlgebra.jl
2-
#
2+
#
33
# [![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://itensor.github.io/QuantumOperatorAlgebra.jl/stable/)
44
# [![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://itensor.github.io/QuantumOperatorAlgebra.jl/dev/)
55
# [![Build Status](https://github.com/ITensor/QuantumOperatorAlgebra.jl/actions/workflows/Tests.yml/badge.svg?branch=main)](https://github.com/ITensor/QuantumOperatorAlgebra.jl/actions/workflows/Tests.yml?query=branch%3Amain)
@@ -80,7 +80,7 @@ o = o1 + o2
8080

8181
o *= 2
8282

83-
@test o isa Sum{Scaled{Int,Op}}
83+
@test o isa Sum{Scaled{Int, Op}}
8484
@test terms(o)[1] == 2 * o1
8585
@test terms(o)[2] == 2 * o2
8686
@test coefficient(terms(o)[1]) == 2
@@ -90,7 +90,7 @@ o3 = Op("Z", 3)
9090

9191
o *= o3
9292

93-
@test o isa Sum{Scaled{Int,Prod{Op}}}
93+
@test o isa Sum{Scaled{Int, Prod{Op}}}
9494
@test terms(o)[1] == 2 * o1 * o3
9595
@test terms(o)[2] == 2 * o2 * o3
9696
@test coefficient(terms(o)[1]) == 2

0 commit comments

Comments
 (0)