Skip to content

Commit a180d2c

Browse files
Merge pull request #435 from ArnoStrouwen/qa
Aqua + typos CI
2 parents 9aaf9b3 + 1111ac8 commit a180d2c

File tree

7 files changed

+53
-7
lines changed

7 files changed

+53
-7
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/[email protected]

.typos.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[default.extend-words]
2+
fom = "fom"
3+
Pris = "Pris"
4+
PARM = "PARM"

Project.toml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
88
ConcreteStructs = "2569d6c7-a4a2-43d3-a901-331e8e4be471"
99
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
1010
EnumX = "4e289a0a-7415-4d19-859d-a7e5c4648b56"
11-
EnzymeCore = "f151be2c-9106-41f4-ab19-57ee4f262869"
1211
FastLapackInterface = "29a986be-02c6-4525-aec4-84b980013641"
1312
GPUArraysCore = "46192b85-c4d5-4398-a991-12ede77f4527"
1413
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
@@ -34,6 +33,7 @@ BandedMatrices = "aae01518-5342-5314-be14-df237901396f"
3433
BlockDiagonals = "0a1fb500-61f7-11e9-3c65-f5ef3456f9f0"
3534
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
3635
Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9"
36+
EnzymeCore = "f151be2c-9106-41f4-ab19-57ee4f262869"
3737
FastAlmostBandedMatrices = "9d29842c-ecb8-4973-b1e9-a27b1157504e"
3838
HYPRE = "b5ffcf37-a2bd-41ab-a3da-4bd9bc8ad771"
3939
IterativeSolvers = "42fd0dbc-a981-5370-80f2-aaf504508153"
@@ -47,7 +47,7 @@ RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd"
4747
LinearSolveBandedMatricesExt = "BandedMatrices"
4848
LinearSolveBlockDiagonalsExt = "BlockDiagonals"
4949
LinearSolveCUDAExt = "CUDA"
50-
LinearSolveEnzymeExt = "Enzyme"
50+
LinearSolveEnzymeExt = ["Enzyme", "EnzymeCore"]
5151
LinearSolveHYPREExt = "HYPRE"
5252
LinearSolveIterativeSolversExt = "IterativeSolvers"
5353
LinearSolveKernelAbstractionsExt = "KernelAbstractions"
@@ -58,39 +58,55 @@ LinearSolveRecursiveArrayToolsExt = "RecursiveArrayTools"
5858
LinearSolveFastAlmostBandedMatricesExt = ["FastAlmostBandedMatrices"]
5959

6060
[compat]
61+
Aqua = "0.8"
6162
ArrayInterface = "7.4.11"
6263
BandedMatrices = "1"
6364
BlockDiagonals = "0.1"
6465
ConcreteStructs = "0.2"
66+
CUDA = "5"
6567
DocStringExtensions = "0.9"
6668
EnumX = "1"
69+
Enzyme = "0.11"
6770
EnzymeCore = "0.6"
71+
FastAlmostBandedMatrices = "0.1"
6872
FastLapackInterface = "2"
73+
FiniteDiff = "2"
74+
ForwardDiff = "0.10"
6975
GPUArraysCore = "0.1"
7076
HYPRE = "1.4.0"
7177
InteractiveUtils = "1.6"
7278
IterativeSolvers = "0.9.3"
7379
Libdl = "1.6"
7480
LinearAlgebra = "1.9"
81+
JET = "0.8"
7582
KLU = "0.3.0, 0.4"
7683
KernelAbstractions = "0.9"
7784
Krylov = "0.9"
7885
KrylovKit = "0.6"
86+
Metal = "0.5"
87+
MPI = "0.20"
88+
MultiFloats = "1"
89+
Pardiso = "0.5"
90+
Pkg = "1"
7991
PrecompileTools = "1"
8092
Preferences = "1"
93+
Random = "1"
8194
RecursiveArrayTools = "2"
8295
RecursiveFactorization = "0.2.8"
8396
Reexport = "1"
8497
Requires = "1"
98+
SafeTestsets = "0.1"
8599
SciMLBase = "2"
86100
SciMLOperators = "0.3"
87101
Setfield = "1"
88102
SparseArrays = "1.9"
89103
Sparspak = "0.3.6"
104+
Test = "1"
90105
UnPack = "1"
91106
julia = "1.9"
92107

93108
[extras]
109+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
94110
BandedMatrices = "aae01518-5342-5314-be14-df237901396f"
95111
BlockDiagonals = "0a1fb500-61f7-11e9-3c65-f5ef3456f9f0"
96112
Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9"
@@ -113,4 +129,4 @@ SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
113129
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
114130

115131
[targets]
116-
test = ["Test", "IterativeSolvers", "InteractiveUtils", "JET", "KrylovKit", "Pkg", "Random", "SafeTestsets", "MultiFloats", "ForwardDiff", "HYPRE", "MPI", "BlockDiagonals", "Enzyme", "FiniteDiff", "BandedMatrices", "FastAlmostBandedMatrices"]
132+
test = ["Aqua", "Test", "IterativeSolvers", "InteractiveUtils", "JET", "KrylovKit", "Pkg", "Random", "SafeTestsets", "MultiFloats", "ForwardDiff", "HYPRE", "MPI", "BlockDiagonals", "Enzyme", "FiniteDiff", "BandedMatrices", "FastAlmostBandedMatrices"]

docs/src/solvers/solvers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ NormalBunchKaufmanFactorization
109109

110110
### LinearSolve.jl
111111

112-
LinearSolve.jl contains some linear solvers built in for specailized cases.
112+
LinearSolve.jl contains some linear solvers built in for specialized cases.
113113

114114
```@docs
115115
SimpleLUFactorization

test/basictests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ function test_interface(alg, prob1, prob2)
4343
sol = solve(prob2, alg; cache_kwargs...)
4444
@test A2 * sol.u b2
4545

46-
# Test cache resue: base mechanism
46+
# Test cache reuse: base mechanism
4747
cache = SciMLBase.init(prob1, alg; cache_kwargs...) # initialize cache
4848
sol = solve!(cache)
4949
@test A1 * sol.u b1
5050

51-
# Test cache resue: only A changes
51+
# Test cache reuse: only A changes
5252
cache.A = deepcopy(A2)
5353
sol = solve!(cache; cache_kwargs...)
5454
@test A2 * sol.u b1
5555

56-
# Test cache resue: both A and b change
56+
# Test cache reuse: both A and b change
5757
cache.A = deepcopy(A2)
5858
cache.b = b2
5959
sol = solve!(cache; cache_kwargs...)

test/qa.jl

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

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const GROUP = get(ENV, "GROUP", "All")
77
const HAS_EXTENSIONS = isdefined(Base, :get_extension)
88

99
if GROUP == "All" || GROUP == "Core"
10+
@time @safetestset "Quality Assurance" include("qa.jl")
1011
@time @safetestset "Basic Tests" include("basictests.jl")
1112
VERSION >= v"1.9" && @time @safetestset "Re-solve" include("resolve.jl")
1213
@time @safetestset "Zero Initialization Tests" include("zeroinittests.jl")

0 commit comments

Comments
 (0)