Skip to content

Commit 5fd8b76

Browse files
Merge pull request #315 from ChrisRackauckas-Claude/explicit-imports-20260107-080305
Improve explicit imports hygiene
2 parents 220228e + 9156c2a commit 5fd8b76

4 files changed

Lines changed: 15 additions & 5 deletions

File tree

Project.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ version = "1.7.0"
99
julia = "1.10"
1010

1111
[extras]
12+
ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7"
1213
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1314

1415
[targets]
15-
test = ["Test"]
16+
test = ["ExplicitImports", "Test"]

docs/make.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Documenter
1+
using Documenter: Documenter, makedocs, deploydocs, MathJax3, HTML
22

33
cp("./docs/Manifest.toml", "./docs/src/assets/Manifest.toml", force = true)
44
cp("./docs/Project.toml", "./docs/src/assets/Project.toml", force = true)
@@ -41,7 +41,7 @@ makedocs(
4141
"http://www.scholarpedia.org/article/Differential-algebraic_equations",
4242
"https://computing.llnl.gov/projects/sundials",
4343
],
44-
format = Documenter.HTML(
44+
format = HTML(
4545
assets = ["assets/favicon.ico"],
4646
canonical = "https://docs.sciml.ai/stable/",
4747
mathengine = mathengine

docs/make_aggregate.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using Documenter, LibGit2, Pkg
1+
using Documenter: Documenter, HTML
2+
using LibGit2
3+
using Pkg
24
using MultiDocumenter
35

46
include("CommercialSupportComponent.jl")
@@ -255,7 +257,7 @@ MultiDocumenter.make(
255257
),
256258
custom_scripts = [
257259
"https://www.googletagmanager.com/gtag/js?id=G-Q3FE4BYYHQ",
258-
Docs.HTML(
260+
HTML(
259261
"""
260262
window.dataLayer = window.dataLayer || [];
261263
function gtag(){dataLayer.push(arguments);}

test/runtests.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
11
using Test
2+
using ExplicitImports
3+
using SciMLDocs
4+
5+
@testset "ExplicitImports" begin
6+
@test check_no_implicit_imports(SciMLDocs) === nothing
7+
@test check_no_stale_explicit_imports(SciMLDocs) === nothing
8+
end

0 commit comments

Comments
 (0)