diff --git a/.github/workflows/FormatCheck.yml b/.github/workflows/FormatCheck.yml index bdd275a5..81dd33f0 100644 --- a/.github/workflows/FormatCheck.yml +++ b/.github/workflows/FormatCheck.yml @@ -25,7 +25,7 @@ jobs: # # julia -e 'using Pkg; Pkg.add(PackageSpec(name = "JuliaFormatter", version = "0.13.0"))' run: | - julia -e 'using Pkg; Pkg.add(PackageSpec(name = "JuliaFormatter", version="1.0.45"))' + julia -e 'using Pkg; Pkg.add(PackageSpec(name = "JuliaFormatter", version="1.0.62"))' julia -e 'using JuliaFormatter; format(".")' - name: Format check run: | diff --git a/.github/workflows/SpellCheck.yml b/.github/workflows/SpellCheck.yml index 50e06406..27a81105 100644 --- a/.github/workflows/SpellCheck.yml +++ b/.github/workflows/SpellCheck.yml @@ -10,4 +10,4 @@ jobs: - name: Checkout Actions Repository uses: actions/checkout@v4 - name: Check spelling - uses: crate-ci/typos@v1.25.0 + uses: crate-ci/typos@v1.26.8 diff --git a/benchmarks/plot.jl b/benchmarks/plot.jl index 058f93b7..976cf045 100644 --- a/benchmarks/plot.jl +++ b/benchmarks/plot.jl @@ -62,7 +62,7 @@ function plot_benchmarks(benchmark, n_points_per_dimension, iterations; neighborhood_searches = [ TrivialNeighborhoodSearch{NDIMS}(; search_radius, eachpoint = 1:n_particles), GridNeighborhoodSearch{NDIMS}(; search_radius, n_points = n_particles), - PrecomputedNeighborhoodSearch{NDIMS}(; search_radius, n_points = n_particles), + PrecomputedNeighborhoodSearch{NDIMS}(; search_radius, n_points = n_particles) ] for i in eachindex(neighborhood_searches) diff --git a/docs/make.jl b/docs/make.jl index a64ef082..46872f7d 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -52,7 +52,7 @@ makedocs(modules = [PointNeighbors], "Home" => "index.md", "API reference" => "reference.md", "Authors" => "authors.md", - "License" => "license.md", + "License" => "license.md" ]) deploydocs(; diff --git a/test/neighborhood_search.jl b/test/neighborhood_search.jl index b5560186..94590aa8 100644 --- a/test/neighborhood_search.jl +++ b/test/neighborhood_search.jl @@ -10,7 +10,7 @@ names = [ "Simple Example 2D", "Box Not Multiple of Search Radius 2D", - "Simple Example 3D", + "Simple Example 3D" ] coordinates = [ @@ -20,7 +20,7 @@ -0.12 -0.05 -0.09 0.15 0.42], [-0.08 0.0 0.18 0.1 -0.08 -0.12 -0.05 -0.09 0.15 0.39 - 0.14 0.34 0.12 0.06 0.13], + 0.14 0.34 0.12 0.06 0.13] ] periodic_boxes = [ @@ -28,7 +28,7 @@ # The `GridNeighborhoodSearch` is forced to round up the cell sizes in this test # to avoid split cells. PeriodicBox(min_corner = [-0.1, -0.2], max_corner = [0.205, 0.43]), - PeriodicBox(min_corner = [-0.1, -0.2, 0.05], max_corner = [0.2, 0.4, 0.35]), + PeriodicBox(min_corner = [-0.1, -0.2, 0.05], max_corner = [0.2, 0.4, 0.35]) ] @testset verbose=true "$(names[i])" for i in eachindex(names) @@ -58,7 +58,7 @@ search_radius, backend = Vector{Vector{Int32}})), PrecomputedNeighborhoodSearch{NDIMS}(; search_radius, n_points, - periodic_box = periodic_boxes[i]), + periodic_box = periodic_boxes[i]) ] names = [ @@ -66,7 +66,7 @@ "`GridNeighborhoodSearch`", "`GridNeighborhoodSearch` with `FullGridCellList` with `DynamicVectorOfVectors`", "`GridNeighborhoodSearch` with `FullGridCellList` with `Vector{Vector}`", - "`PrecomputedNeighborhoodSearch`", + "`PrecomputedNeighborhoodSearch`" ] # Also test copied templates @@ -80,7 +80,7 @@ cell_list = FullGridCellList(min_corner = periodic_boxes[i].min_corner, max_corner = periodic_boxes[i].max_corner, backend = Vector{Vector{Int32}})), - PrecomputedNeighborhoodSearch{NDIMS}(periodic_box = periodic_boxes[i]), + PrecomputedNeighborhoodSearch{NDIMS}(periodic_box = periodic_boxes[i]) ] copied_nhs = copy_neighborhood_search.(template_nhs, search_radius, n_points) append!(neighborhood_searches, copied_nhs) @@ -119,7 +119,7 @@ (10, 11), (100, 90), (9, 10, 7), - (39, 40, 41), + (39, 40, 41) ] seeds = [1, 2] @@ -175,7 +175,7 @@ max_corner, search_radius, backend = Vector{Vector{Int}})), - PrecomputedNeighborhoodSearch{NDIMS}(; search_radius, n_points), + PrecomputedNeighborhoodSearch{NDIMS}(; search_radius, n_points) ] names = [ @@ -184,7 +184,7 @@ "`GridNeighborhoodSearch` with `FullGridCellList` with `DynamicVectorOfVectors` and `ParallelUpdate`", "`GridNeighborhoodSearch` with `FullGridCellList` with `DynamicVectorOfVectors` and `SemiParallelUpdate`", "`GridNeighborhoodSearch` with `FullGridCellList` with `Vector{Vector}`", - "`PrecomputedNeighborhoodSearch`", + "`PrecomputedNeighborhoodSearch`" ] # Also test copied templates @@ -199,7 +199,7 @@ GridNeighborhoodSearch{NDIMS}(cell_list = FullGridCellList(; min_corner, max_corner, backend = Vector{Vector{Int32}})), - PrecomputedNeighborhoodSearch{NDIMS}(), + PrecomputedNeighborhoodSearch{NDIMS}() ] copied_nhs = copy_neighborhood_search.(template_nhs, search_radius, n_points) append!(neighborhood_searches, copied_nhs) diff --git a/test/nhs_grid.jl b/test/nhs_grid.jl index 90a7a691..a054e792 100644 --- a/test/nhs_grid.jl +++ b/test/nhs_grid.jl @@ -198,7 +198,7 @@ names = [ "Simple Example 2D", "Box Not Multiple of Search Radius 2D", - "Simple Example 3D", + "Simple Example 3D" ] coordinates = [ @@ -208,7 +208,7 @@ -0.12 -0.05 -0.09 0.15 0.42], [-0.08 0.0 0.18 0.1 -0.08 -0.12 -0.05 -0.09 0.15 0.39 - 0.14 0.34 0.12 0.06 0.13], + 0.14 0.34 0.12 0.06 0.13] ] periodic_boxes = [ @@ -216,7 +216,7 @@ # The `GridNeighborhoodSearch` is forced to round up the cell sizes in this test # to avoid split cells. PeriodicBox(min_corner = [-0.1, -0.2], max_corner = [0.205, 0.43]), - PeriodicBox(min_corner = [-0.1, -0.2, 0.05], max_corner = [0.2, 0.4, 0.35]), + PeriodicBox(min_corner = [-0.1, -0.2, 0.05], max_corner = [0.2, 0.4, 0.35]) ] @testset verbose=true "$(names[i])" for i in eachindex(names) @@ -255,11 +255,11 @@ nhs = GridNeighborhoodSearch{2}(search_radius = 1.0, n_points = size(coords, 2), periodic_box = PeriodicBox(min_corner = [ -1.5, - 0.0, + 0.0 ], max_corner = [ 2.5, - 3.0, + 3.0 ])) initialize_grid!(nhs, coords)