Skip to content

Commit 6abffd2

Browse files
Merge pull request #835 from ChrisRackauckas-Claude/explicit-imports-20260102-041311
Add ExplicitImports tests to ensure import hygiene
2 parents 95b91de + 9d10fc8 commit 6abffd2

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Project.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,13 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
88

99
[compat]
1010
Documenter = "1"
11+
ExplicitImports = "1.14.0"
1112
julia = "1.10"
13+
14+
[extras]
15+
DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa"
16+
ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7"
17+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
18+
19+
[targets]
20+
test = ["DifferentialEquations", "ExplicitImports", "Test"]

test/runtests.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
using DiffEqDocs, DifferentialEquations
22
using Test
3+
using ExplicitImports
34

45
# Tests are just for docs generation
6+
7+
@testset "ExplicitImports" begin
8+
@test check_no_implicit_imports(DiffEqDocs) === nothing
9+
@test check_no_stale_explicit_imports(DiffEqDocs) === nothing
10+
end

0 commit comments

Comments
 (0)