Skip to content

Commit

Permalink
Merge pull request #16 from JuliaReach/schillic/aqua
Browse files Browse the repository at this point in the history
Run Aqua in tests and fix problems
  • Loading branch information
schillic committed Feb 28, 2024
2 parents bb8c1c2 + 406a7f2 commit c15a58e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Requires = "ae029012-a4dd-5104-9daa-d747884805df"
[compat]
ControllerFormats = "0.2"
LazySets = "2.11.1"
LinearAlgebra = "<0.0.1, 1.6"
ReachabilityBase = "0.2.1"
Reexport = "0.2, 1"
Requires = "0.5, 1"
Expand Down
9 changes: 9 additions & 0 deletions test/Aqua.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using NeuralNetworkReachability, Test
import Aqua

@testset "Aqua tests" begin
Aqua.test_all(NeuralNetworkReachability; ambiguities=false)

# do not warn about ambiguities in dependencies
Aqua.test_ambiguities(NeuralNetworkReachability)
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"
ControllerFormats = "02ac4b2c-022a-44aa-84a5-ea45a5754bcc"
LazySets = "b4f0291d-fe17-52bc-9479-3d1a343d9043"
Expand All @@ -8,6 +9,7 @@ ReachabilityAnalysis = "1e97bd63-91d1-579d-8e8d-501d2b57c93f"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[compat]
Aqua = "0.8"
CDDLib = "0.6 - 0.9"
ControllerFormats = "0.2"
LazySets = "2.11.1"
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ end
end
end

@test isempty(detect_ambiguities(NeuralNetworkReachability))
include("Aqua.jl")

0 comments on commit c15a58e

Please sign in to comment.