Skip to content

Commit

Permalink
Add test using ExplicitImports.jl (#96)
Browse files Browse the repository at this point in the history
* add test using ExplicitImports.jl

* Update test/test_aqua.jl

Co-authored-by: Hendrik Ranocha <[email protected]>

---------

Co-authored-by: Hendrik Ranocha <[email protected]>
  • Loading branch information
JoshuaLampert and ranocha authored Mar 12, 2024
1 parent de4d7f4 commit fd1ea97
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/DispersiveShallowWater.jl
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
module DispersiveShallowWater

using DiffEqBase
using Interpolations
using LinearAlgebra: mul!, ldiv!, factorize, I, Diagonal
using PolynomialBases
using DiffEqBase: DiffEqBase, SciMLBase, terminate!
using Interpolations: Interpolations, linear_interpolation
using LinearAlgebra: mul!, I, Diagonal
using PolynomialBases: PolynomialBases
using Printf: @printf, @sprintf
using RecipesBase
using RecipesBase: RecipesBase, @recipe, @series
using Reexport: @reexport
using Roots: AlefeldPotraShi, find_zero

using SciMLBase: CallbackSet, DiscreteCallback, ODEProblem, ODESolution
import SciMLBase: get_tmp_cache, u_modified!
using SciMLBase: DiscreteCallback, ODEProblem, ODESolution
import SciMLBase: u_modified!

@reexport using StaticArrays: SVector
using SimpleUnPack: @unpack
Expand Down
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7"
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
Expand Down
3 changes: 3 additions & 0 deletions test/test_aqua.jl
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
module TestAqua

using Aqua
using ExplicitImports: check_no_implicit_imports, check_no_stale_explicit_imports
using Test
using DispersiveShallowWater

@testset "Aqua.jl" begin
Aqua.test_all(DispersiveShallowWater,
ambiguities = false)
@test isnothing(check_no_implicit_imports(DispersiveShallowWater))
@test isnothing(check_no_stale_explicit_imports(DispersiveShallowWater))
end

end #module

0 comments on commit fd1ea97

Please sign in to comment.