diff --git a/Project.toml b/Project.toml index d43d2a0..06a40c2 100644 --- a/Project.toml +++ b/Project.toml @@ -7,10 +7,14 @@ version = "1.0.0" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" [compat] +Aqua = "0.8" +LinearAlgebra = "1" +Test = "1" julia = "1.10" [extras] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Test"] +test = ["Aqua", "Test"] diff --git a/README.md b/README.md index 4a51974..00b6bfa 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # FactoredMatrices +[![Aqua QA](https://juliatesting.github.io/Aqua.jl/dev/assets/badge.svg)](https://github.com/JuliaTesting/Aqua.jl) + Originally, this package was a sub package of CellSegmentation. FactoredMatrices provides efficient multiplication methods for plain, adjoint diff --git a/test/runtests.jl b/test/runtests.jl index dc3b88a..f09c55c 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,5 +1,6 @@ using Test, LinearAlgebra using FactoredMatrices +using Aqua myrand(::Type{T}, m, n) where {T <: Real} = rand(T, m, n) myrand(::Type{Complex{T}}, m, n) where {T <: Real} = rand(T, m, n) + im * rand(T, m, n) @@ -26,6 +27,14 @@ function check_allocs(Mf, ws, C, D, E, r15x5, r10x5, r5x10, r5x15) return @test @allocated(mul!(r5x15, E, Transpose(Mf); cache = ws)) == 0 end +@testset "Aqua" begin + if Base.VERSION < v"1.11" + Aqua.test_all(FactoredMatrices; ambiguities = (broken = true,)) + else + Aqua.test_all(FactoredMatrices) + end +end + @testset "FactoredMatrices" begin for T in (Float32, Float64, ComplexF32, ComplexF64) # Mf: 15×10 (U: 15×3, V: 3×10)