Skip to content

Commit cc8818a

Browse files
authored
test: check docstrings (#640)
* test: check that all public names have docstrings * Add FiniteDiff to test deps * Remove doctests * Revert project
1 parent 5576221 commit cc8818a

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

DifferentiationInterface/ext/DifferentiationInterfaceForwardDiffExt/DifferentiationInterfaceForwardDiffExt.jl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
module DifferentiationInterfaceForwardDiffExt
22

3-
using ADTypes: AbstractADType, AutoForwardDiff
4-
using Base: Fix1, Fix2
3+
using ADTypes: AutoForwardDiff
54
import DifferentiationInterface as DI
65
using DifferentiationInterface:
76
BatchSizeSettings,
87
Cache,
98
Constant,
109
PrepContext,
1110
Context,
12-
FixTail,
1311
DerivativePrep,
1412
DifferentiateWith,
1513
GradientPrep,
1614
HessianPrep,
1715
HVPPrep,
1816
JacobianPrep,
19-
NoDerivativePrep,
2017
NoSecondDerivativePrep,
2118
PushforwardPrep,
2219
Rewrap,
@@ -42,17 +39,14 @@ using ForwardDiff:
4239
derivative,
4340
derivative!,
4441
extract_derivative,
45-
extract_derivative!,
4642
gradient,
4743
gradient!,
4844
hessian,
4945
hessian!,
5046
jacobian,
5147
jacobian!,
52-
npartials,
5348
partials,
5449
value
55-
using LinearAlgebra: dot, mul!
5650

5751
DI.check_available(::AutoForwardDiff) = true
5852

DifferentiationInterface/test/Misc/Internals/_formalities.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ end
2323
@test JuliaFormatter.format(DifferentiationInterface; verbose=false, overwrite=false)
2424
end
2525

26+
@testset "Documentation" begin
27+
if VERSION >= v"1.11"
28+
@test isempty(Docs.undocumented_names(DifferentiationInterface))
29+
end
30+
end
31+
2632
@testset "ExplicitImports" begin
2733
@test check_no_implicit_imports(DifferentiationInterface) === nothing
2834
@test check_no_stale_explicit_imports(DifferentiationInterface) === nothing

DifferentiationInterfaceTest/test/formalities.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ end
2121
JET.test_package(DifferentiationInterfaceTest; target_defined_modules=true)
2222
end
2323

24+
@testset "Documentation" begin
25+
if VERSION >= v"1.11"
26+
@test isempty(Docs.undocumented_names(DifferentiationInterfaceTest))
27+
end
28+
end
29+
2430
@testset "ExplicitImports" begin
2531
@test_broken check_no_implicit_imports(DifferentiationInterfaceTest) === nothing
2632
@test_broken check_no_stale_explicit_imports(DifferentiationInterfaceTest) === nothing

0 commit comments

Comments
 (0)