From a09a6f3245a707ba90f928dbdb5b99330af6cd3d Mon Sep 17 00:00:00 2001 From: Hendrik Ranocha Date: Fri, 1 Mar 2024 05:14:47 +0100 Subject: [PATCH] test explicit imports --- Project.toml | 2 +- test/Project.toml | 2 ++ test/runtests.jl | 7 +++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 6d861948..5eb8d045 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "BSeries" uuid = "ebb8d67c-85b4-416c-b05f-5f409e808f32" authors = ["Hendrik Ranocha and contributors"] -version = "0.1.58" +version = "0.1.59" [deps] Combinatorics = "861a8166-3701-5b0c-9a16-15d98fcdc6aa" diff --git a/test/Project.toml b/test/Project.toml index 6646aa02..466b80d6 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -1,5 +1,6 @@ [deps] Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" +ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" SymEngine = "123dc426-2d89-5057-bbad-38513e3affd8" @@ -9,6 +10,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [compat] Aqua = "0.6.1, 0.7" +ExplicitImports = "1" StaticArrays = "1" SymEngine = "0.8, 0.9.1, 0.10, 0.11" SymPy = "1" diff --git a/test/runtests.jl b/test/runtests.jl index e1afc14d..57007662 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -11,6 +11,7 @@ using SymPy: SymPy using Symbolics: Symbolics using Aqua: Aqua +using ExplicitImports: check_no_implicit_imports, check_no_stale_explicit_imports @testset "BSeries" begin @testset "lazy representation of exact ODE solution" begin @@ -2184,4 +2185,10 @@ using Aqua: Aqua Aqua.test_ambiguities([BSeries]) end end + + @testset "ExplicitImports" begin + @test check_no_implicit_imports(BSeries) === nothing + + @test check_no_stale_explicit_imports(BSeries) === nothing + end end # @testset "BSeries"