Skip to content

Commit 8e8dad8

Browse files
committed
add Aqua QA
1 parent 3d2ad33 commit 8e8dad8

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

Project.toml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ NonlinearSolveZygoteExt = "Zygote"
4343
[compat]
4444
ADTypes = "0.2"
4545
ArrayInterface = "6.0.24, 7"
46+
Aqua = "0.8"
4647
BandedMatrices = "1"
48+
BenchmarkTools = "1"
4749
ConcreteStructs = "0.2"
4850
DiffEqBase = "6.141"
4951
EnumX = "1"
@@ -57,22 +59,30 @@ LeastSquaresOptim = "0.8"
5759
LineSearches = "7"
5860
LinearAlgebra = "<0.0.1, 1"
5961
LinearSolve = "2.12"
62+
NaNMath = "1"
6063
NonlinearProblemLibrary = "0.1"
64+
Pkg = "1"
6165
PrecompileTools = "1"
6266
Printf = "<0.0.1, 1"
67+
Random = "1"
6368
RecursiveArrayTools = "2"
6469
Reexport = "0.2, 1"
70+
SafeTestsets = "0.1"
6571
SciMLBase = "2.9"
6672
SciMLOperators = "0.3"
6773
SimpleNonlinearSolve = "0.1.23"
6874
SparseArrays = "<0.0.1, 1"
6975
SparseDiffTools = "2.12"
76+
StaticArrays = "1"
7077
StaticArraysCore = "1.4"
78+
Symbolics = "5"
79+
Test = "1"
7180
UnPack = "1.0"
7281
Zygote = "0.6"
7382
julia = "1.9"
7483

7584
[extras]
85+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
7686
BandedMatrices = "aae01518-5342-5314-be14-df237901396f"
7787
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
7888
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
@@ -94,4 +104,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
94104
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
95105

96106
[targets]
97-
test = ["Enzyme", "BenchmarkTools", "SafeTestsets", "Pkg", "Test", "ForwardDiff", "StaticArrays", "Symbolics", "LinearSolve", "Random", "LinearAlgebra", "Zygote", "SparseDiffTools", "NonlinearProblemLibrary", "LeastSquaresOptim", "FastLevenbergMarquardt", "NaNMath", "BandedMatrices", "DiffEqBase"]
107+
test = ["Aqua", "Enzyme", "BenchmarkTools", "SafeTestsets", "Pkg", "Test", "ForwardDiff", "StaticArrays", "Symbolics", "LinearSolve", "Random", "LinearAlgebra", "Zygote", "SparseDiffTools", "NonlinearProblemLibrary", "LeastSquaresOptim", "FastLevenbergMarquardt", "NaNMath", "BandedMatrices", "DiffEqBase"]

test/qa.jl

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

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ end
1313

1414
@time begin
1515
if GROUP == "All" || GROUP == "Core"
16+
@time @safetestset "Quality Assurance" include("qa.jl")
1617
@time @safetestset "Basic Tests + Some AD" include("basictests.jl")
1718
@time @safetestset "Sparsity Tests" include("sparse.jl")
1819
@time @safetestset "Polyalgs" include("polyalgs.jl")

0 commit comments

Comments
 (0)