Skip to content
This repository was archived by the owner on Dec 30, 2025. It is now read-only.

Improve explicit imports hygiene#6

Merged
ChrisRackauckas merged 1 commit intoSciML:mainfrom
ChrisRackauckas-Claude:explicit-imports-20251229-100517
Dec 29, 2025
Merged

Improve explicit imports hygiene#6
ChrisRackauckas merged 1 commit intoSciML:mainfrom
ChrisRackauckas-Claude:explicit-imports-20251229-100517

Conversation

@ChrisRackauckas-Claude
Copy link

Summary

  • Remove unused runtime dependencies (ModelingToolkit, NonlinearSolve, QuasiMonteCarlo, SparseArrays, Symbolics)
  • Make LinearAlgebra imports explicit (norm, I)
  • Remove broken/incomplete code from utils.jl (the sample_collocation_points function referenced undefined bcs variable and used SymbolicUtils.BasicSymbolic without importing)
  • Clean up test dependencies, remove unused packages
  • Make test imports more explicit where possible
  • Add ExplicitImports.jl tests to verify import hygiene

Files modified

  • Project.toml: Reduced to only LinearAlgebra dependency
  • src/FastSolvers.jl: Explicit imports from LinearAlgebra
  • src/utils.jl: Removed broken sample_collocation_points function
  • test/Project.toml: Added ExplicitImports, removed unused deps
  • test/runtests.jl: Made imports more explicit
  • test/explicit_imports.jl: New file for CI import checks

Test plan

  • All existing tests pass
  • ExplicitImports checks pass (check_no_implicit_imports, check_no_stale_explicit_imports)

cc @ChrisRackauckas

🤖 Generated with Claude Code

- Remove unused runtime dependencies (ModelingToolkit, NonlinearSolve,
  QuasiMonteCarlo, SparseArrays, Symbolics)
- Make LinearAlgebra imports explicit (norm, I)
- Remove broken/incomplete code from utils.jl
- Clean up test dependencies, remove unused packages
- Make test imports more explicit where possible
- Add ExplicitImports.jl tests to verify import hygiene

Files modified:
- Project.toml: Reduced to only LinearAlgebra dependency
- src/FastSolvers.jl: Explicit imports from LinearAlgebra
- src/utils.jl: Removed broken sample_collocation_points function
- test/Project.toml: Added ExplicitImports, removed unused deps
- test/runtests.jl: Made imports more explicit
- test/explicit_imports.jl: New file for CI import checks

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ChrisRackauckas ChrisRackauckas merged commit d0b1a3f into SciML:main Dec 29, 2025
5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants