From 15ab571fb67858878e66536e995c6a55b6a61f2e Mon Sep 17 00:00:00 2001 From: ChrisRackauckas Date: Mon, 29 Dec 2025 10:50:06 -0500 Subject: [PATCH] Add ExplicitImports.jl tests for import hygiene MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- Project.toml | 7 +++++++ test/runtests.jl | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/Project.toml b/Project.toml index 7b3862a..7e73923 100644 --- a/Project.toml +++ b/Project.toml @@ -21,3 +21,10 @@ NonlinearProblemLibrary = "0.1" ODEProblemLibrary = "1" SDEProblemLibrary = "1" julia = "1.10" + +[extras] +ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[targets] +test = ["ExplicitImports", "Test"] diff --git a/test/runtests.jl b/test/runtests.jl index 88f15ec..fa0a720 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,2 +1,9 @@ # The test is simply that all of the examples build! using DiffEqProblemLibrary +using ExplicitImports +using Test + +@testset "ExplicitImports" begin + @test check_no_implicit_imports(DiffEqProblemLibrary) === nothing + @test check_no_stale_explicit_imports(DiffEqProblemLibrary) === nothing +end