Skip to content

Add ExplicitImports.jl tests to ensure import hygiene#44

Closed
ChrisRackauckas-Claude wants to merge 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:explicit-imports-20251229-194937
Closed

Add ExplicitImports.jl tests to ensure import hygiene#44
ChrisRackauckas-Claude wants to merge 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:explicit-imports-20251229-194937

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Contributor

Summary

  • Added ExplicitImports.jl test suite to verify no implicit or stale imports in CI
  • Moved ExplicitImports from runtime dependency to test-only dependency
  • Current analysis shows the package has a clean bill of health (no import issues)

Analysis Results

The ExplicitImports.jl analysis shows:

  • ✅ No implicit imports detected
  • ✅ No stale explicit imports detected

Since the package currently contains only an empty module, there are no import issues to fix. However, these tests will ensure that future code additions maintain proper explicit imports hygiene.

Changes

  1. test/runtests.jl: Added ExplicitImports test suite with checks for:

    • check_no_implicit_imports(ColPrac)
    • check_no_stale_explicit_imports(ColPrac)
  2. Project.toml:

    • Moved ExplicitImports from [deps] to [extras] (test-only dependency)
    • Added ExplicitImports to [targets] test section

Test Results

All tests pass successfully:

Test Summary:   | Pass  Total  Time
ExplicitImports |    2      2  1.5s
     Testing ColPrac tests passed

This ensures the package follows SciML best practices for explicit imports and will catch any import hygiene issues in future development.

cc @ChrisRackauckas

🤖 Generated with Claude Code

- Added test suite to verify no implicit or stale imports
- Moved ExplicitImports from runtime dependency to test dependency
- All tests pass successfully

The package currently has no import issues (clean bill of health from ExplicitImports.jl).
This test ensures future code additions maintain proper explicit imports.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants