Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
trixi-framework
GitHub Repository: trixi-framework/Trixi.jl
Path: blob/main/test/test_aqua.jl
2055 views
1
module TestAqua
2
3
using Aqua
4
using ExplicitImports: check_no_implicit_imports, check_no_stale_explicit_imports
5
using Test
6
using Trixi
7
8
include("test_trixi.jl")
9
10
@timed_testset "Aqua.jl" begin
11
Aqua.test_all(Trixi,
12
ambiguities = false,
13
unbound_args = false, # FIXME: UnstructuredSortedBoundaryTypes
14
# exceptions necessary for adding a new method `StartUpDG.estimate_h`
15
# in src/solvers/dgmulti/sbp.jl
16
piracies = (treat_as_own = [Trixi.StartUpDG.RefElemData,
17
Trixi.StartUpDG.MeshData],),
18
# exception necessary because StableRNGs.jl is only used in an extension
19
stale_deps = (ignore = [:StableRNGs],))
20
@test isnothing(check_no_implicit_imports(Trixi,
21
skip = (Core, Base, Trixi.P4est, Trixi.T8code,
22
Trixi.EllipsisNotation)))
23
@test isnothing(check_no_stale_explicit_imports(Trixi,
24
ignore = (:derivative_operator,
25
:periodic_derivative_operator,
26
:upwind_operators,
27
Symbol("@batch"))))
28
end
29
30
end #module
31
32