Skip to content

Commit 7fc5ff4

Browse files
committed
Aqua + typos CI
1 parent 4aec94c commit 7fc5ff4

File tree

8 files changed

+38
-3
lines changed

8 files changed

+38
-3
lines changed

.github/dependabot.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ updates:
55
directory: "/" # Location of package manifests
66
schedule:
77
interval: "weekly"
8+
ignore:
9+
- dependency-name: "crate-ci/typos"
10+
update-types: ["version-update:semver-patch"]

.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: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,26 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1616
StochasticDiffEq = "789caeaf-c7a9-5a7d-9973-96adeb23e2a0"
1717

1818
[compat]
19+
Aqua = "0.8"
1920
DiffEqBase = "6.5"
2021
FiniteDiff = "2.3"
2122
ForwardDiff = "0.10"
23+
LinearAlgebra = "1"
2224
OrdinaryDiffEq = "5.33, 6"
25+
Random = "1"
2326
RecursiveArrayTools = "1,2,3"
27+
SafeTestsets = "0.1"
2428
SparseDiffTools = "1.6, 2"
2529
Statistics = "1"
2630
StochasticDiffEq = "6.13"
31+
Test = "1"
2732
julia = "1.6"
2833

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

3440
[targets]
35-
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: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
Aqua.test_project_extras(MultiScaleArrays)
8+
Aqua.test_stale_deps(MultiScaleArrays)
9+
Aqua.test_unbound_args(MultiScaleArrays)
10+
Aqua.test_undefined_exports(MultiScaleArrays)
11+
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)