From 80898c624fff16e3fd1488ee53e8d15af1717e2f Mon Sep 17 00:00:00 2001 From: Akira Kyle Date: Thu, 14 Sep 2023 16:07:28 -0600 Subject: [PATCH] Silence Aqua ambiguities test for StatsBase pulled in by RandomMatrices --- Project.toml | 3 ++- test/test_aqua.jl | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index ab9af6df..e5a3a61f 100644 --- a/Project.toml +++ b/Project.toml @@ -41,10 +41,11 @@ LRUCache = "8ac3fa9e-de4c-5943-b1dc-09c6b5f20637" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" +StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" Strided = "5e0ebb24-38b0-5f93-81fe-25c709ecae67" StridedViews = "4db3bf67-4bd7-4b4e-b153-31dc3fb37143" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" UnsafeArrays = "c4a57d5a-5b31-53a6-b365-19f8c011fbd6" [targets] -test = ["LinearAlgebra", "SparseArrays", "Random", "Test", "Aqua", "JET", "Adapt", "Dates", "FFTW", "LRUCache", "Strided", "StridedViews", "UnsafeArrays", "FillArrays"] +test = ["LinearAlgebra", "SparseArrays", "Random", "Test", "Aqua", "JET", "Adapt", "Dates", "FFTW", "LRUCache", "Strided", "StridedViews", "UnsafeArrays", "FillArrays", "StatsBase"] diff --git a/test/test_aqua.jl b/test/test_aqua.jl index b3ecf9ad..bd5289af 100644 --- a/test/test_aqua.jl +++ b/test/test_aqua.jl @@ -2,10 +2,12 @@ using Test using QuantumOpticsBase using Aqua using FillArrays +using StatsBase @testset "aqua" begin Aqua.test_all(QuantumOpticsBase; - ambiguities=(exclude=[FillArrays.reshape],), # Due to https://github.com/JuliaArrays/FillArrays.jl/issues/105#issuecomment-1518406018 + ambiguities=(exclude=[FillArrays.reshape, # Due to https://github.com/JuliaArrays/FillArrays.jl/issues/105#issuecomment-1518406018 + StatsBase.TestStat, StatsBase.:(==) , StatsBase.sort!],), # Due to https://github.com/JuliaStats/StatsBase.jl/issues/861 piracy=(broken=true,) ) # manual piracy check to exclude identityoperator