Skip to content

Commit ee2aef4

Browse files
committed
Aqua + typos CI
1 parent ec6c889 commit ee2aef4

File tree

7 files changed

+34
-3
lines changed

7 files changed

+34
-3
lines changed

.github/workflows/SpellCheck.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Spell Check
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
typos-check:
7+
name: Spell Check with Typos
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout Actions Repository
11+
uses: actions/checkout@v3
12+
- name: Check spelling
13+
uses: crate-ci/typos@v1.16.23

.typos.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[default.extend-words]

Project.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,25 @@ StochasticDiffEq = "789caeaf-c7a9-5a7d-9973-96adeb23e2a0"
1717
TreeViews = "a2a6695c-b41b-5b7d-aed9-dbfdeacea5d7"
1818

1919
[compat]
20+
Aqua = "0.8"
2021
DiffEqBase = "6.5"
2122
FiniteDiff = "2.3"
2223
ForwardDiff = "0.10"
2324
OrdinaryDiffEq = "5.33, 6"
2425
RecursiveArrayTools = "1,2"
26+
SafeTestsets = "0.1"
2527
SparseDiffTools = "1.6, 2"
2628
Statistics = "1"
2729
StochasticDiffEq = "6.13"
30+
Test = "1"
2831
TreeViews = "0.3"
2932
julia = "1.6"
3033

3134
[extras]
35+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
3236
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
3337
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
3438
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
3539

3640
[targets]
37-
test = ["OrdinaryDiffEq", "SafeTestsets", "Test"]
41+
test = ["Aqua", "OrdinaryDiffEq", "SafeTestsets", "Test"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Let's build a version of this. Using the constructors we can directly construct
6464
cell1 = Cell([1.0; 2.0; 3.0])
6565
cell2 = Cell([4.0; 5.0])
6666
```
67-
and build types higher up in the hierarchy by using the `constuct` method. The method
67+
and build types higher up in the hierarchy by using the `construct` method. The method
6868
is `construct(T::AbstractMultiScaleArray, nodes, values)`, though if `values` is not given it's
6969
taken to be empty.
7070
```julia

docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ cell1 = Cell([1.0; 2.0; 3.0])
6060
cell2 = Cell([4.0; 5.0])
6161
```
6262

63-
and build types higher up in the hierarchy by using the `constuct` method. The method
63+
and build types higher up in the hierarchy by using the `construct` method. The method
6464
is `construct(T::AbstractMultiScaleArray, nodes, values)`, though, if `values` is not given, it's
6565
taken to be empty.
6666

test/qa.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using MultiScaleArrays, Aqua
2+
@testset "Aqua" begin
3+
Aqua.find_persistent_tasks_deps(MultiScaleArrays)
4+
Aqua.test_ambiguities(MultiScaleArrays, recursive = false)
5+
Aqua.test_deps_compat(MultiScaleArrays)
6+
Aqua.test_piracies(MultiScaleArrays,
7+
treat_as_own = [])
8+
Aqua.test_project_extras(MultiScaleArrays)
9+
Aqua.test_stale_deps(MultiScaleArrays)
10+
Aqua.test_unbound_args(MultiScaleArrays)
11+
Aqua.test_undefined_exports(MultiScaleArrays)
12+
end

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using MultiScaleArrays, OrdinaryDiffEq, DiffEqBase, StochasticDiffEq, SafeTestsets
22
using Test
33

4+
@time @safetestset "Quality Assurance" begin include("qa.jl") end
45
@time @testset "Tuple Nodes" begin include("tuple_nodes.jl") end
56
@time @testset "Bisect Search Tests" begin include("bisect_search_tests.jl") end
67
@time @testset "Indexing and Creation Tests" begin include("indexing_and_creation_tests.jl") end

0 commit comments

Comments
 (0)