Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Aqua in tests and fix problems #3439

Merged
merged 2 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,17 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c"

[compat]
Distributed = "<0.0.1, 1.6"
GLPK = "0.11 - 0.15, 1"
IntervalArithmetic = "0.15 - 0.21, =0.21.2" # v0.22 removed IntervalBox
JuMP = "0.21 - 0.23, 1"
LinearAlgebra = "<0.0.1, 1.6"
Random = "<0.0.1, 1.6"
ReachabilityBase = "0.2.1"
RecipesBase = "0.6 - 0.8, 1"
Reexport = "0.2, 1"
Requires = "0.5, 1"
SharedArrays = "<0.0.1, 1.6"
SparseArrays = "<0.0.1, 1.6"
StaticArraysCore = "1"
julia = "1.6"
14 changes: 14 additions & 0 deletions test/Aqua.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using LazySets, Test
import Aqua

@testset "Aqua tests" begin
Aqua.test_all(LazySets; ambiguities=false,
# the unbound args should be resolved in the future
unbound_args=(broken=true,),
# known piracies
piracies=(treat_as_own=[<=, rand, LazySets.activate_assertions,
LazySets.deactivate_assertions],))

# do not warn about ambiguities in dependencies
Aqua.test_ambiguities(LazySets)
end
2 changes: 2 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
CDDLib = "3391f64e-dcde-5f30-b752-e11513730f60"
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
Expand Down Expand Up @@ -30,6 +31,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
WriteVTK = "64499a7a-5c06-52f2-abe2-ccb03c286192"

[compat]
Aqua = "0.8"
CDDLib = "0.6 - 0.9"
Distributions = "0.19 - 0.25"
Documenter = "1"
Expand Down
2 changes: 2 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -339,3 +339,5 @@ if test_suite_doctests
doctest(LazySets)
end
end

include("Aqua.jl")
Loading