Skip to content

Commit bc64b76

Browse files
authored
Use latest version of JuliaFormatter (#78)
1 parent 5edd046 commit bc64b76

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

.github/workflows/FormatCheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
#
2626
# julia -e 'using Pkg; Pkg.add(PackageSpec(name = "JuliaFormatter", version = "0.13.0"))'
2727
run: |
28-
julia -e 'using Pkg; Pkg.add(PackageSpec(name = "JuliaFormatter", version="1.0.45"))'
28+
julia -e 'using Pkg; Pkg.add(PackageSpec(name = "JuliaFormatter", version="1.0.62"))'
2929
julia -e 'using JuliaFormatter; format(".")'
3030
- name: Format check
3131
run: |

benchmarks/plot.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function plot_benchmarks(benchmark, n_points_per_dimension, iterations;
6262
neighborhood_searches = [
6363
TrivialNeighborhoodSearch{NDIMS}(; search_radius, eachpoint = 1:n_particles),
6464
GridNeighborhoodSearch{NDIMS}(; search_radius, n_points = n_particles),
65-
PrecomputedNeighborhoodSearch{NDIMS}(; search_radius, n_points = n_particles),
65+
PrecomputedNeighborhoodSearch{NDIMS}(; search_radius, n_points = n_particles)
6666
]
6767

6868
for i in eachindex(neighborhood_searches)

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ makedocs(modules = [PointNeighbors],
5252
"Home" => "index.md",
5353
"API reference" => "reference.md",
5454
"Authors" => "authors.md",
55-
"License" => "license.md",
55+
"License" => "license.md"
5656
])
5757

5858
deploydocs(;

test/neighborhood_search.jl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
names = [
1111
"Simple Example 2D",
1212
"Box Not Multiple of Search Radius 2D",
13-
"Simple Example 3D",
13+
"Simple Example 3D"
1414
]
1515

1616
coordinates = [
@@ -20,15 +20,15 @@
2020
-0.12 -0.05 -0.09 0.15 0.42],
2121
[-0.08 0.0 0.18 0.1 -0.08
2222
-0.12 -0.05 -0.09 0.15 0.39
23-
0.14 0.34 0.12 0.06 0.13],
23+
0.14 0.34 0.12 0.06 0.13]
2424
]
2525

2626
periodic_boxes = [
2727
PeriodicBox(min_corner = [-0.1, -0.2], max_corner = [0.2, 0.4]),
2828
# The `GridNeighborhoodSearch` is forced to round up the cell sizes in this test
2929
# to avoid split cells.
3030
PeriodicBox(min_corner = [-0.1, -0.2], max_corner = [0.205, 0.43]),
31-
PeriodicBox(min_corner = [-0.1, -0.2, 0.05], max_corner = [0.2, 0.4, 0.35]),
31+
PeriodicBox(min_corner = [-0.1, -0.2, 0.05], max_corner = [0.2, 0.4, 0.35])
3232
]
3333

3434
@testset verbose=true "$(names[i])" for i in eachindex(names)
@@ -58,15 +58,15 @@
5858
search_radius,
5959
backend = Vector{Vector{Int32}})),
6060
PrecomputedNeighborhoodSearch{NDIMS}(; search_radius, n_points,
61-
periodic_box = periodic_boxes[i]),
61+
periodic_box = periodic_boxes[i])
6262
]
6363

6464
names = [
6565
"`TrivialNeighborhoodSearch`",
6666
"`GridNeighborhoodSearch`",
6767
"`GridNeighborhoodSearch` with `FullGridCellList` with `DynamicVectorOfVectors`",
6868
"`GridNeighborhoodSearch` with `FullGridCellList` with `Vector{Vector}`",
69-
"`PrecomputedNeighborhoodSearch`",
69+
"`PrecomputedNeighborhoodSearch`"
7070
]
7171

7272
# Also test copied templates
@@ -80,7 +80,7 @@
8080
cell_list = FullGridCellList(min_corner = periodic_boxes[i].min_corner,
8181
max_corner = periodic_boxes[i].max_corner,
8282
backend = Vector{Vector{Int32}})),
83-
PrecomputedNeighborhoodSearch{NDIMS}(periodic_box = periodic_boxes[i]),
83+
PrecomputedNeighborhoodSearch{NDIMS}(periodic_box = periodic_boxes[i])
8484
]
8585
copied_nhs = copy_neighborhood_search.(template_nhs, search_radius, n_points)
8686
append!(neighborhood_searches, copied_nhs)
@@ -119,7 +119,7 @@
119119
(10, 11),
120120
(100, 90),
121121
(9, 10, 7),
122-
(39, 40, 41),
122+
(39, 40, 41)
123123
]
124124

125125
seeds = [1, 2]
@@ -175,7 +175,7 @@
175175
max_corner,
176176
search_radius,
177177
backend = Vector{Vector{Int}})),
178-
PrecomputedNeighborhoodSearch{NDIMS}(; search_radius, n_points),
178+
PrecomputedNeighborhoodSearch{NDIMS}(; search_radius, n_points)
179179
]
180180

181181
names = [
@@ -184,7 +184,7 @@
184184
"`GridNeighborhoodSearch` with `FullGridCellList` with `DynamicVectorOfVectors` and `ParallelUpdate`",
185185
"`GridNeighborhoodSearch` with `FullGridCellList` with `DynamicVectorOfVectors` and `SemiParallelUpdate`",
186186
"`GridNeighborhoodSearch` with `FullGridCellList` with `Vector{Vector}`",
187-
"`PrecomputedNeighborhoodSearch`",
187+
"`PrecomputedNeighborhoodSearch`"
188188
]
189189

190190
# Also test copied templates
@@ -199,7 +199,7 @@
199199
GridNeighborhoodSearch{NDIMS}(cell_list = FullGridCellList(; min_corner,
200200
max_corner,
201201
backend = Vector{Vector{Int32}})),
202-
PrecomputedNeighborhoodSearch{NDIMS}(),
202+
PrecomputedNeighborhoodSearch{NDIMS}()
203203
]
204204
copied_nhs = copy_neighborhood_search.(template_nhs, search_radius, n_points)
205205
append!(neighborhood_searches, copied_nhs)

test/nhs_grid.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
names = [
199199
"Simple Example 2D",
200200
"Box Not Multiple of Search Radius 2D",
201-
"Simple Example 3D",
201+
"Simple Example 3D"
202202
]
203203

204204
coordinates = [
@@ -208,15 +208,15 @@
208208
-0.12 -0.05 -0.09 0.15 0.42],
209209
[-0.08 0.0 0.18 0.1 -0.08
210210
-0.12 -0.05 -0.09 0.15 0.39
211-
0.14 0.34 0.12 0.06 0.13],
211+
0.14 0.34 0.12 0.06 0.13]
212212
]
213213

214214
periodic_boxes = [
215215
PeriodicBox(min_corner = [-0.1, -0.2], max_corner = [0.2, 0.4]),
216216
# The `GridNeighborhoodSearch` is forced to round up the cell sizes in this test
217217
# to avoid split cells.
218218
PeriodicBox(min_corner = [-0.1, -0.2], max_corner = [0.205, 0.43]),
219-
PeriodicBox(min_corner = [-0.1, -0.2, 0.05], max_corner = [0.2, 0.4, 0.35]),
219+
PeriodicBox(min_corner = [-0.1, -0.2, 0.05], max_corner = [0.2, 0.4, 0.35])
220220
]
221221

222222
@testset verbose=true "$(names[i])" for i in eachindex(names)
@@ -255,11 +255,11 @@
255255
nhs = GridNeighborhoodSearch{2}(search_radius = 1.0, n_points = size(coords, 2),
256256
periodic_box = PeriodicBox(min_corner = [
257257
-1.5,
258-
0.0,
258+
0.0
259259
],
260260
max_corner = [
261261
2.5,
262-
3.0,
262+
3.0
263263
]))
264264

265265
initialize_grid!(nhs, coords)

0 commit comments

Comments
 (0)