Skip to content

Commit

Permalink
Aqua + typos CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnoStrouwen committed Dec 12, 2023
1 parent 4aec94c commit 7fc5ff4
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ updates:
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
ignore:
- dependency-name: "crate-ci/typos"
update-types: ["version-update:semver-patch"]
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]

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.16.23
1 change: 1 addition & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[default.extend-words]
8 changes: 7 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,26 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
StochasticDiffEq = "789caeaf-c7a9-5a7d-9973-96adeb23e2a0"

[compat]
Aqua = "0.8"
DiffEqBase = "6.5"
FiniteDiff = "2.3"
ForwardDiff = "0.10"
LinearAlgebra = "1"
OrdinaryDiffEq = "5.33, 6"
Random = "1"
RecursiveArrayTools = "1,2,3"
SafeTestsets = "0.1"
SparseDiffTools = "1.6, 2"
Statistics = "1"
StochasticDiffEq = "6.13"
Test = "1"
julia = "1.6"

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

[targets]
test = ["OrdinaryDiffEq", "SafeTestsets", "Test"]
test = ["Aqua", "OrdinaryDiffEq", "SafeTestsets", "Test"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Let's build a version of this. Using the constructors we can directly construct
cell1 = Cell([1.0; 2.0; 3.0])
cell2 = Cell([4.0; 5.0])
```
and build types higher up in the hierarchy by using the `constuct` method. The method
and build types higher up in the hierarchy by using the `construct` method. The method
is `construct(T::AbstractMultiScaleArray, nodes, values)`, though if `values` is not given it's
taken to be empty.
```julia
Expand Down
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ cell1 = Cell([1.0; 2.0; 3.0])
cell2 = Cell([4.0; 5.0])
```

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

Expand Down
11 changes: 11 additions & 0 deletions test/qa.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using MultiScaleArrays, Aqua
@testset "Aqua" begin
Aqua.find_persistent_tasks_deps(MultiScaleArrays)
Aqua.test_ambiguities(MultiScaleArrays, recursive = false)
Aqua.test_deps_compat(MultiScaleArrays)
Aqua.test_piracies(MultiScaleArrays)
Aqua.test_project_extras(MultiScaleArrays)
Aqua.test_stale_deps(MultiScaleArrays)
Aqua.test_unbound_args(MultiScaleArrays)
Aqua.test_undefined_exports(MultiScaleArrays)
end
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using MultiScaleArrays, OrdinaryDiffEq, DiffEqBase, StochasticDiffEq, SafeTestsets
using Test

@time @safetestset "Quality Assurance" begin include("qa.jl") end
@time @testset "Tuple Nodes" begin include("tuple_nodes.jl") end
@time @testset "Bisect Search Tests" begin include("bisect_search_tests.jl") end
@time @testset "Indexing and Creation Tests" begin include("indexing_and_creation_tests.jl") end
Expand Down

0 comments on commit 7fc5ff4

Please sign in to comment.