Skip to content

Setup the codebase to use explicit imports #636

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 20, 2025
Merged

Conversation

ChrisRackauckas
Copy link
Member

No description provided.

Comment on lines +4 to +5
using LinearSolve: LinearSolve, is_cusparse, defaultalg, cudss_loaded, DefaultLinearSolver,
DefaultAlgorithmChoice, ALREADY_WARNED_CUDSS, LinearCache, needs_concrete_A,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
using LinearSolve: LinearSolve, is_cusparse, defaultalg, cudss_loaded, DefaultLinearSolver,
DefaultAlgorithmChoice, ALREADY_WARNED_CUDSS, LinearCache, needs_concrete_A,
using LinearSolve: LinearSolve, is_cusparse, defaultalg, cudss_loaded, DefaultLinearSolver,
DefaultAlgorithmChoice, ALREADY_WARNED_CUDSS, LinearCache,
needs_concrete_A,

Comment on lines +3 to +4
using LinearSolve: LinearSolve, SciMLLinearSolveAlgorithm, init, solve!, LinearProblem,
LinearCache, AbstractKrylovSubspaceMethod, DefaultLinearSolver,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
using LinearSolve: LinearSolve, SciMLLinearSolveAlgorithm, init, solve!, LinearProblem,
LinearCache, AbstractKrylovSubspaceMethod, DefaultLinearSolver,
using LinearSolve: LinearSolve, SciMLLinearSolveAlgorithm, init, solve!, LinearProblem,
LinearCache, AbstractKrylovSubspaceMethod, DefaultLinearSolver,

@@ -1,7 +1,8 @@
module LinearSolveRecursiveFactorizationExt

using LinearSolve
using LinearSolve: LinearSolve, userecursivefactorization, LinearCache, @get_cacheval, RFLUFactorization
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
using LinearSolve: LinearSolve, userecursivefactorization, LinearCache, @get_cacheval, RFLUFactorization
using LinearSolve: LinearSolve, userecursivefactorization, LinearCache, @get_cacheval,
RFLUFactorization

Comment on lines +4 to +6
@get_cacheval, CHOLMODFactorization, GenericFactorization, GenericLUFactorization,
KLUFactorization, LUFactorization, NormalCholeskyFactorization, OperatorAssumptions,
QRFactorization, RFLUFactorization, UMFPACKFactorization, solve
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
@get_cacheval, CHOLMODFactorization, GenericFactorization, GenericLUFactorization,
KLUFactorization, LUFactorization, NormalCholeskyFactorization, OperatorAssumptions,
QRFactorization, RFLUFactorization, UMFPACKFactorization, solve
@get_cacheval, CHOLMODFactorization, GenericFactorization,
GenericLUFactorization,
KLUFactorization, LUFactorization, NormalCholeskyFactorization,
OperatorAssumptions,
QRFactorization, RFLUFactorization, UMFPACKFactorization, solve

QRFactorization, RFLUFactorization, UMFPACKFactorization, solve
using ArrayInterface: ArrayInterface
using LinearAlgebra: LinearAlgebra, I, Hermitian, Symmetric, cholesky, ldiv!, lu, lu!, QR
using SparseArrays: SparseArrays, AbstractSparseArray, AbstractSparseMatrixCSC, SparseMatrixCSC,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
using SparseArrays: SparseArrays, AbstractSparseArray, AbstractSparseMatrixCSC, SparseMatrixCSC,
using SparseArrays: SparseArrays, AbstractSparseArray, AbstractSparseMatrixCSC,
SparseMatrixCSC,

Comment on lines +10 to +15
using LinearAlgebra: LinearAlgebra, BlasInt, LU, Adjoint, BLAS, Bidiagonal, BunchKaufman,
ColumnNorm, Diagonal, Factorization, Hermitian, I, LAPACK, NoPivot,
RowMaximum, RowNonZero, SymTridiagonal, Symmetric, Transpose,
Tridiagonal, UniformScaling, axpby!, axpy!, bunchkaufman, bunchkaufman!,
cholesky, cholesky!, diagind, dot, inv, ldiv!, ldlt!, lu, lu!, mul!, norm,
qr, qr!, svd, svd!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
using LinearAlgebra: LinearAlgebra, BlasInt, LU, Adjoint, BLAS, Bidiagonal, BunchKaufman,
ColumnNorm, Diagonal, Factorization, Hermitian, I, LAPACK, NoPivot,
RowMaximum, RowNonZero, SymTridiagonal, Symmetric, Transpose,
Tridiagonal, UniformScaling, axpby!, axpy!, bunchkaufman, bunchkaufman!,
cholesky, cholesky!, diagind, dot, inv, ldiv!, ldlt!, lu, lu!, mul!, norm,
qr, qr!, svd, svd!
using LinearAlgebra: LinearAlgebra, BlasInt, LU, Adjoint, BLAS, Bidiagonal, BunchKaufman,
ColumnNorm, Diagonal, Factorization, Hermitian, I, LAPACK, NoPivot,
RowMaximum, RowNonZero, SymTridiagonal, Symmetric, Transpose,
Tridiagonal, UniformScaling, axpby!, axpy!, bunchkaufman,
bunchkaufman!,
cholesky, cholesky!, diagind, dot, inv, ldiv!, ldlt!, lu, lu!, mul!,
norm,
qr, qr!, svd, svd!

Comment on lines +19 to +20
using SciMLOperators: SciMLOperators, AbstractSciMLOperator, IdentityOperator, MatrixOperator,
has_ldiv!, issquare
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
using SciMLOperators: SciMLOperators, AbstractSciMLOperator, IdentityOperator, MatrixOperator,
has_ldiv!, issquare
using SciMLOperators: SciMLOperators, AbstractSciMLOperator, IdentityOperator,
MatrixOperator,
has_ldiv!, issquare

Comment on lines +27 to +28

@test check_no_implicit_imports(LinearSolve; skip = (Base, Core),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
@test check_no_implicit_imports(LinearSolve; skip = (Base, Core),
@test check_no_implicit_imports(LinearSolve; skip = (Base, Core),


@test check_no_implicit_imports(LinearSolve; skip = (Base, Core),
allow_unanalyzable = unanalyzable_mods) === nothing
@test check_no_stale_explicit_imports(LinearSolve; allow_unanalyzable = unanalyzable_mods) === nothing
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
@test check_no_stale_explicit_imports(LinearSolve; allow_unanalyzable = unanalyzable_mods) === nothing
@test check_no_stale_explicit_imports(
LinearSolve; allow_unanalyzable = unanalyzable_mods) === nothing

@ChrisRackauckas ChrisRackauckas merged commit 8655d7a into main Jul 20, 2025
36 of 44 checks passed
@ChrisRackauckas ChrisRackauckas deleted the explicitimportscode branch July 20, 2025 23:01
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.

1 participant