diff --git a/DifferentiationInterface/ext/DifferentiationInterfaceForwardDiffExt/DifferentiationInterfaceForwardDiffExt.jl b/DifferentiationInterface/ext/DifferentiationInterfaceForwardDiffExt/DifferentiationInterfaceForwardDiffExt.jl index 06cdb3048..557ad3c86 100644 --- a/DifferentiationInterface/ext/DifferentiationInterfaceForwardDiffExt/DifferentiationInterfaceForwardDiffExt.jl +++ b/DifferentiationInterface/ext/DifferentiationInterfaceForwardDiffExt/DifferentiationInterfaceForwardDiffExt.jl @@ -1,7 +1,6 @@ module DifferentiationInterfaceForwardDiffExt -using ADTypes: AbstractADType, AutoForwardDiff -using Base: Fix1, Fix2 +using ADTypes: AutoForwardDiff import DifferentiationInterface as DI using DifferentiationInterface: BatchSizeSettings, @@ -9,14 +8,12 @@ using DifferentiationInterface: Constant, PrepContext, Context, - FixTail, DerivativePrep, DifferentiateWith, GradientPrep, HessianPrep, HVPPrep, JacobianPrep, - NoDerivativePrep, NoSecondDerivativePrep, PushforwardPrep, Rewrap, @@ -42,17 +39,14 @@ using ForwardDiff: derivative, derivative!, extract_derivative, - extract_derivative!, gradient, gradient!, hessian, hessian!, jacobian, jacobian!, - npartials, partials, value -using LinearAlgebra: dot, mul! DI.check_available(::AutoForwardDiff) = true diff --git a/DifferentiationInterface/test/Misc/Internals/_formalities.jl b/DifferentiationInterface/test/Misc/Internals/_formalities.jl index c9145dfcc..8b58e654b 100644 --- a/DifferentiationInterface/test/Misc/Internals/_formalities.jl +++ b/DifferentiationInterface/test/Misc/Internals/_formalities.jl @@ -23,6 +23,12 @@ end @test JuliaFormatter.format(DifferentiationInterface; verbose=false, overwrite=false) end +@testset "Documentation" begin + if VERSION >= v"1.11" + @test isempty(Docs.undocumented_names(DifferentiationInterface)) + end +end + @testset "ExplicitImports" begin @test check_no_implicit_imports(DifferentiationInterface) === nothing @test check_no_stale_explicit_imports(DifferentiationInterface) === nothing diff --git a/DifferentiationInterfaceTest/test/formalities.jl b/DifferentiationInterfaceTest/test/formalities.jl index b83b0a168..3a4095235 100644 --- a/DifferentiationInterfaceTest/test/formalities.jl +++ b/DifferentiationInterfaceTest/test/formalities.jl @@ -21,6 +21,12 @@ end JET.test_package(DifferentiationInterfaceTest; target_defined_modules=true) end +@testset "Documentation" begin + if VERSION >= v"1.11" + @test isempty(Docs.undocumented_names(DifferentiationInterfaceTest)) + end +end + @testset "ExplicitImports" begin @test_broken check_no_implicit_imports(DifferentiationInterfaceTest) === nothing @test_broken check_no_stale_explicit_imports(DifferentiationInterfaceTest) === nothing