Skip to content

Commit

Permalink
add SpellCheck CI (#24)
Browse files Browse the repository at this point in the history
* add SpellCheck CI

* fix typos caught by the CI
  • Loading branch information
andrewwinters5000 authored Jun 14, 2023
1 parent 196c892 commit a33de64
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 9 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/SpellCheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Spell Check

on: [pull_request, workflow_dispatch]

jobs:
typos-check:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v3
- name: Check spelling
uses: crate-ci/typos@v1.14.12
2 changes: 1 addition & 1 deletion docs/src/github-git.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ review. That is, you should
around)
* remove debug statements
* add a script `interactive_xxx.jl` that uses your feature (only relevant for new
features within the interactive mesh funtionality)
features within the interactive mesh functionality)

After you are confident that your branch is cleaned up properly, commit all
changes and push them to the repository.
Expand Down
2 changes: 1 addition & 1 deletion examples/interactive_outer_boundary.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ cone1 = newEndPointsLineCurve("cone1", [0.0, -3.0, 0.0], [1.0, 0.0, 0.0])
iceCream = newCircularArcCurve("iceCream", [0.0, 0.0, 0.0], 1.0, 0.0, 180.0, "degrees")
cone2 = newEndPointsLineCurve("cone2", [-1.0, 0.0, 0.0], [0.0, -3.0, 0.0])

# Assemble the three curve in a closed chain oriented couter-clockwise. The chain
# Assemble the three curve in a closed chain oriented counter-clockwise. The chain
# name `IceCreamCone` is only used internally by HOHQMesh.

addCurveToInnerBoundary!(p, cone1, "IceCreamCone")
Expand Down
2 changes: 1 addition & 1 deletion examples/interactive_outer_boundary_generic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ cone1 = new("cone1", [0.0,-3.0,0.0], [1.0,0.0,0.0])
iceCream = new("iceCream", [0.0,0.0,0.0], 1.0, 0.0, 180.0, "degrees")
cone2 = new("cone2", [-1.0,0.0,0.0], [0.0,-3.0,0.0])

# Assemble the three curve in a closed chain oriented couter-clockwise. The chain
# Assemble the three curve in a closed chain oriented counter-clockwise. The chain
# name `IceCreamCone` is only used internally by HOHQMesh.

add!(p, cone1, "IceCreamCone")
Expand Down
2 changes: 1 addition & 1 deletion examples/interactive_outer_box_two_circles.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ p = newProject("box_two_circles", "out")
setPolynomialOrder!(p, 4)
setMeshFileFormat!(p, "ABAQUS")

# Outer boundary for this example mesh wil be a rectangular box. For this the user
# Outer boundary for this example mesh will be a rectangular box. For this the user
# can set the lower left most point of the box, the spacing size in each coordinate
# direction `[Δx, Δy, Δz]`, and the number of intervals taken.

Expand Down
2 changes: 1 addition & 1 deletion src/Project/BackgroundGridAPI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ end
"""
setBackgroundGridSize!(proj::Project, dx::Array{Float64}, key::String)
Set the grid size dx of an existing background grid withing `proj`. Here, `dx`
Set the grid size dx of an existing background grid within `proj`. Here, `dx`
is passed an array.
"""
function setBackgroundGridSize!(proj::Project, dx::Array{Float64}, key::String)
Expand Down
2 changes: 1 addition & 1 deletion src/Project/Undo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Note that these projects refer to the interactive mesh functionality projects,
not Julia projects in the sense of `Project.toml`.
To make the undo framework project based, undo() would be replaced by undo(project) and an .undoStack
property of the project would replace HQMglobalUndoStack. This is
not a big deal except if multiple projects are open, and muliple objects like curves have been
not a big deal except if multiple projects are open, and multiple objects like curves have been
defined but not added to a project. In interactive mode curves are separate from projects until
added. (The same curve could be added to multiple projects.) So some logic needs to be
figured out before modifying below. If only one project is managed per session,
Expand Down
2 changes: 1 addition & 1 deletion src/Viz/VizProject.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ just the mesh, `plotOptions = MESH`.
To plot everything, `plotOptions = MODEL + GRID + MESH + REFINEMENTS`
Contents are overlayed in the order: GRID, MESH, MODEL, REFINEMENTS
Contents are overlaid in the order: GRID, MESH, MODEL, REFINEMENTS
"""
function plotProject!(proj::Project, plotOptions::Int = 0)

Expand Down
2 changes: 1 addition & 1 deletion test/test_background_grid.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ using Test
removeBackgroundGrid!(p)
@test HOHQMesh.hasBackgroundGrid(p) == false
#
# Add with method 3 (No outer bounday, preferred): bounding box + nPts
# Add with method 3 (No outer boundary, preferred): bounding box + nPts
#
addBackgroundGrid!(p, [10.0,-10.0,-5.0,5.0], [10,10,0])
@test HOHQMesh.hasBackgroundGrid(p) == true
Expand Down
2 changes: 1 addition & 1 deletion test/test_visualization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ using CairoMakie
remove!(p_visu, "big_spline", "inner1")
@test length(p_visu.innerBoundaryNames) == 2

# Do the rest of the inner boudary removals correctly.
# Do the rest of the inner boundary removals correctly.
remove!(p_visu, "small_spline", "inner2")
@test length(p_visu.innerBoundaryNames) == 1
undo()
Expand Down

0 comments on commit a33de64

Please sign in to comment.