Skip to content

Commit 15ab571

Browse files
Add ExplicitImports.jl tests for import hygiene
- Add ExplicitImports and Test to test dependencies in Project.toml - Add tests to verify no implicit imports or stale explicit imports The package was already clean with no implicit or stale imports. These tests ensure import hygiene is maintained going forward. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f369938 commit 15ab571

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Project.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,10 @@ NonlinearProblemLibrary = "0.1"
2121
ODEProblemLibrary = "1"
2222
SDEProblemLibrary = "1"
2323
julia = "1.10"
24+
25+
[extras]
26+
ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7"
27+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
28+
29+
[targets]
30+
test = ["ExplicitImports", "Test"]

test/runtests.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
# The test is simply that all of the examples build!
22
using DiffEqProblemLibrary
3+
using ExplicitImports
4+
using Test
5+
6+
@testset "ExplicitImports" begin
7+
@test check_no_implicit_imports(DiffEqProblemLibrary) === nothing
8+
@test check_no_stale_explicit_imports(DiffEqProblemLibrary) === nothing
9+
end

0 commit comments

Comments
 (0)