Skip to content

Commit c96c2c4

Browse files
InterdisciplinaryPhysicsTeamClaudMorpitmonticone
committed
Clean docstrings and add .JuliaFormatter.jl
Co-Authored-By: Claudio Moroni <43729990+ClaudMor@users.noreply.github.com> Co-Authored-By: Pietro Monticone <38562595+pitmonticone@users.noreply.github.com>
1 parent f3d1442 commit c96c2c4

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.JuliaFormatter.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
using Pkg # Load package manager
2+
Pkg.add("JuliaFormatter") # Install JuliaFormatter
3+
4+
using JuliaFormatter # Load JuliaFormatter
5+
format("."; verbose=true) # Format all files

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ docs/site/
3030
Manifest.toml
3131

3232
# Formatting files
33-
formatter.jl
33+
##.JuliaFormatter.jl

src/abstractmultilayergraph.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function _specify_interlayer!(
134134
all(in.([new_interlayer.layer_1, new_interlayer.layer_2], Ref(mg.layers_names))) ||
135135
throw(
136136
ErrorException(
137-
"The new interlayer conencts two layers that are not (one or both) part of the multilayer graph. Make sure you spelled the `layer_1` and `layer_2` arguments of the `Interlayer` correctly.",
137+
"The new interlayer connects two layers that are not (one or both) part of the multilayer graph. Make sure you spelled the `layer_1` and `layer_2` arguments of the `Interlayer` correctly.",
138138
),
139139
)
140140

@@ -694,7 +694,7 @@ function Graphs.modularity(
694694
n_layers = length(mg.layers)
695695
size(c) == (n_nodes, n_layers) || throw(
696696
ErrorException(
697-
"The size of the community matrx does not match (nn(mg),length(mg.layers)), found $(size(c)) and $((nn(mg),length(mg.layers)))",
697+
"The size of the community matrix does not match (nn(mg),length(mg.layers)), found $(size(c)) and $((nn(mg),length(mg.layers)))",
698698
),
699699
)
700700

src/traits.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Define traits from SimpleTraits.jl
2-
32
"""
43
IsWeighted{X}
54

0 commit comments

Comments
 (0)