From 8b190db860cf8615e70a0614d2f6fb7328c61897 Mon Sep 17 00:00:00 2001 From: SatoshiTerasaki Date: Sun, 22 Dec 2024 16:54:22 +0900 Subject: [PATCH] Format files using JuliaFormatter --- src/DocstringAsImage.jl | 8 +++++--- test/runtests.jl | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/DocstringAsImage.jl b/src/DocstringAsImage.jl index 211097e..1f036e4 100644 --- a/src/DocstringAsImage.jl +++ b/src/DocstringAsImage.jl @@ -35,7 +35,9 @@ macro imgdoc(s::Symbol) r = REPL.find_readme(m) if isnothing(r) error( - "Sorry, currently, DocstringAsImage does not support the" * " @doc " * string(m) * + "Sorry, currently, DocstringAsImage does not support the" * + " @doc " * + string(m) * " because it has not docstring nor README.md.", ) else @@ -61,10 +63,10 @@ function imgreadme(m::Module) readme = basename(REPL.find_readme(m)) try imgs = mktempdir() do d - cp(pkgdir(m), joinpath(d), force=true, follow_symlinks=true) + cp(pkgdir(m), joinpath(d), force = true, follow_symlinks = true) readme = joinpath(d, readme) IOCapture.capture() do - chmod(joinpath(d), 0o700, recursive=true) + chmod(joinpath(d), 0o700, recursive = true) run(`$(quarto()) render $(readme) --to typst --metadata keep-typ:true`) typpath = first(splitext(readme)) * ".typ" @assert isfile(typpath) diff --git a/test/runtests.jl b/test/runtests.jl index f2a985e..df6d201 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -8,5 +8,5 @@ using JET end @testset "JET" begin - JET.report_package(DocstringAsImage, target_defined_modules=true) + JET.report_package(DocstringAsImage, target_defined_modules = true) end