Skip to content

Commit fe79f4f

Browse files
mtfishmangithub-actions[bot]
authored andcommitted
Format .jl files (Runic)
1 parent 81ed5df commit fe79f4f

File tree

17 files changed

+822
-820
lines changed

17 files changed

+822
-820
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DataGraphs"
22
uuid = "b5a273c3-7e6c-41f6-98bd-8d7f1525a36a"
3+
version = "0.2.10"
34
authors = ["Matthew Fishman <mfishman@flatironinstitute.org> and contributors"]
4-
version = "0.2.9"
55

66
[deps]
77
Dictionaries = "85a47980-9c8c-11e8-2b9f-f7ca1fa99fb4"

docs/make.jl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
using DataGraphs: DataGraphs
22
using Documenter: Documenter, DocMeta, deploydocs, makedocs
33

4-
DocMeta.setdocmeta!(DataGraphs, :DocTestSetup, :(using DataGraphs); recursive=true)
4+
DocMeta.setdocmeta!(DataGraphs, :DocTestSetup, :(using DataGraphs); recursive = true)
55

66
include("make_index.jl")
77

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

20-
deploydocs(; repo="github.com/ITensor/DataGraphs.jl", devbranch="main", push_preview=true)
20+
deploydocs(; repo = "github.com/ITensor/DataGraphs.jl", devbranch = "main", push_preview = true)

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 DataGraphs: DataGraphs
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(DataGraphs), "examples", "README.jl"),
17-
joinpath(pkgdir(DataGraphs), "docs", "src");
18-
flavor=Literate.DocumenterFlavor(),
19-
name="index",
20-
postprocess=ccq_logo,
16+
joinpath(pkgdir(DataGraphs), "examples", "README.jl"),
17+
joinpath(pkgdir(DataGraphs), "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 DataGraphs: DataGraphs
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(DataGraphs), "examples", "README.jl"),
17-
joinpath(pkgdir(DataGraphs));
18-
flavor=Literate.CommonMarkFlavor(),
19-
name="README",
20-
postprocess=ccq_logo,
16+
joinpath(pkgdir(DataGraphs), "examples", "README.jl"),
17+
joinpath(pkgdir(DataGraphs));
18+
flavor = Literate.CommonMarkFlavor(),
19+
name = "README",
20+
postprocess = ccq_logo,
2121
)

examples/README.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# # DataGraphs.jl
2-
#
2+
#
33
# [![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://itensor.github.io/DataGraphs.jl/stable/)
44
# [![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://itensor.github.io/DataGraphs.jl/dev/)
55
# [![Build Status](https://github.com/ITensor/DataGraphs.jl/actions/workflows/Tests.yml/badge.svg?branch=main)](https://github.com/ITensor/DataGraphs.jl/actions/workflows/Tests.yml?query=branch%3Amain)

examples/datagraph.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using DataGraphs: DataGraph
22
using Graphs: Edge, grid, has_edge, has_vertex
33

44
g = grid((4,))
5-
dg = DataGraph(g; vertex_data_eltype=String, edge_data_eltype=Symbol)
5+
dg = DataGraph(g; vertex_data_eltype = String, edge_data_eltype = Symbol)
66
@show !isassigned(dg, Edge(1, 2))
77
@show !isassigned(dg, 1 => 2)
88
@show !isassigned(dg, Edge(1 => 2))

examples/disjoint_union.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ using NamedGraphs.GraphsExtensions: ⊔
33
using NamedGraphs.NamedGraphGenerators: named_grid
44
using DataGraphs: DataGraph
55

6-
g = DataGraph(named_grid((2, 2)); vertex_data_eltype=String, edge_data_eltype=String)
6+
g = DataGraph(named_grid((2, 2)); vertex_data_eltype = String, edge_data_eltype = String)
77

88
for v in vertices(g)
9-
g[v] = "V$v"
9+
g[v] = "V$v"
1010
end
1111
for e in edges(g)
12-
g[e] = "E$e"
12+
g[e] = "E$e"
1313
end
1414

1515
gg = g g

examples/multidimdatagraph_1d.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using Graphs: grid, has_edge, has_vertex
33
using NamedGraphs: NamedGraph, NamedEdge
44

55
g = NamedGraph(grid((4,)), ["A", "B", "C", "D"])
6-
dg = DataGraph(g; vertex_data_eltype=String, edge_data_eltype=Symbol)
6+
dg = DataGraph(g; vertex_data_eltype = String, edge_data_eltype = Symbol)
77

88
@show has_vertex(dg, "A")
99
@show has_vertex(dg, "D")

examples/multidimdatagraph_2d.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using NamedGraphs: NamedEdge
33
using NamedGraphs.NamedGraphGenerators: named_grid
44

55
g = named_grid((2, 2))
6-
dg = DataGraph(g; vertex_data_eltype=String, edge_data_eltype=String)
6+
dg = DataGraph(g; vertex_data_eltype = String, edge_data_eltype = String)
77

88
dg[1, 1] = "X11"
99

examples/slicing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ using NamedGraphs.NamedGraphGenerators: named_grid
44
using Graphs: ne, nv
55

66
g = named_grid((2, 2))
7-
dg = DataGraph(g; vertex_data_eltype=String, edge_data_eltype=String)
7+
dg = DataGraph(g; vertex_data_eltype = String, edge_data_eltype = String)
88

99
dg[1, 1] = "V11"
1010
dg[1, 2] = "V12"

0 commit comments

Comments
 (0)