Skip to content

Commit

Permalink
Add imports from PrecompileTools; tests with ExplicitImports.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmbates committed Mar 3, 2024
1 parent 188f24b commit 1698bd2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ BSplineKit = "0.14, 0.15, 0.16, 0.17"
DataAPI = "1"
DataFrames = "1"
Distributions = "0.21, 0.22, 0.23, 0.24, 0.25"
ExplicitImports = "1.2"
GLM = "1.8.2"
InteractiveUtils = "1"
JSON3 = "1"
Expand Down Expand Up @@ -67,10 +68,11 @@ julia = "1.8"
[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7"
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
Suppressor = "fd094767-a336-5f1f-9728-57cf17d0bbfb"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Aqua", "DataFrames", "InteractiveUtils", "StableRNGs", "Suppressor", "Test"]
test = ["Aqua", "DataFrames", "ExplicitImports", "InteractiveUtils", "StableRNGs", "Suppressor", "Test"]
4 changes: 1 addition & 3 deletions src/MixedModels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ using Markdown: Markdown
using MixedModelsDatasets: dataset, datasets
using NLopt: NLopt, Opt, ftol_abs, ftol_rel, initial_step, maxtime, xtol_abs, xtol_rel
using PooledArrays: PooledArrays, PooledArray
using PrecompileTools: PrecompileTools
using PrecompileTools: PrecompileTools, @setup_workload, @compile_workload
using ProgressMeter: ProgressMeter, Progress, ProgressUnknown, finish!, next!
using Random: Random, AbstractRNG, randn!
using SparseArrays: SparseArrays, SparseMatrixCSC, SparseVector, dropzeros!, nnz
Expand Down Expand Up @@ -208,8 +208,6 @@ include("mimeshow.jl")
include("serialization.jl")
include("profile/profile.jl")

using PrecompileTools

@setup_workload begin
# Putting some things in `setup` can reduce the size of the
# precompile file and potentially make loading faster.
Expand Down
6 changes: 6 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Aqua
using ExplicitImports
using GLM
using MixedModels
using Test
Expand All @@ -18,6 +19,11 @@ import LinearAlgebra: BLAS
piracies=(;treat_as_own=[GLM.wrkresp!, Base.:|]))
end

@testset "ExplicitImports" begin
check_no_implicit_imports(MixedModels)
check_no_stale_explicit_imports(MixedModels)
end

include("utilities.jl")
include("misc.jl")
include("pivot.jl")
Expand Down

0 comments on commit 1698bd2

Please sign in to comment.