Skip to content

Conversation

@ChrisRackauckas-Claude
Copy link
Contributor

Summary

  • Convert implicit imports to explicit imports in FiniteVolumeMethod1D.jl
  • Add ExplicitImports.jl tests to CI to prevent future regressions

Changes Made

Source Code (src/FiniteVolumeMethod1D.jl)

Changed from bare using statements to explicit imports:

  • using CommonSolve: CommonSolve, solve
  • using SciMLBase: SciMLBase, CallbackSet, DiscreteCallback, ODEFunction, ODEProblem
  • using SparseArrays: sparse

Test Infrastructure

  • Added test/explicit_imports.jl with ExplicitImports checks:
    • check_no_implicit_imports(FiniteVolumeMethod1D)
    • check_no_stale_explicit_imports(FiniteVolumeMethod1D)
  • Updated test/runtests.jl to include Explicit Imports test suite
  • Added ExplicitImports to test dependencies in both Project.toml and test/Project.toml

Test plan

  • ExplicitImports tests pass (2/2 tests)
  • Main package still compiles and functions correctly
  • CI passes

cc @ChrisRackauckas

🤖 Generated with Claude Code

- Convert implicit imports to explicit imports in FiniteVolumeMethod1D.jl
- Add ExplicitImports.jl tests to CI
- Update Project.toml and test/Project.toml with ExplicitImports dependency

Changes made:
- src/FiniteVolumeMethod1D.jl: Changed from bare `using` to explicit imports:
  - `using CommonSolve: CommonSolve, solve`
  - `using SciMLBase: SciMLBase, CallbackSet, DiscreteCallback, ODEFunction, ODEProblem`
  - `using SparseArrays: sparse`
- test/explicit_imports.jl: New test file with ExplicitImports checks
- test/runtests.jl: Added Explicit Imports test suite

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

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@ChrisRackauckas ChrisRackauckas merged commit 676858a into SciML:main Dec 29, 2025
1 of 3 checks passed
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