Skip to content

docs: use qualified using for CairoMakie (fix meta no-import test) - #424

Merged
ocots merged 1 commit into
mainfrom
fix/meta-no-import-cairomakie
Sep 1, 2026
Merged

ocots merged 1 commit into
mainfrom
fix/meta-no-import-cairomakie

Conversation

@ocots

@ocots ocots commented Sep 1, 2026

Copy link
Copy Markdown
Member

The SVG/PNG plotting setup merged in #423 used import CairoMakie, which violates Handbook tenet 2 ("using, never import") and fails the test_no_import regression guard (verified: 1 failure on main).

Use using CairoMakie: CairoMakie, Makie instead — identical behaviour: loads CairoMakie, keeps Makie's plot/plot! out of Main (no clash with Plots in @docs blocks), enables the SVG backend, and disables PNG output. Verified: test_no_import passes and the docs build produces SVG assets with no PNG plots.

The SVG plotting setup merged in #423 used `import CairoMakie`, which trips
the `test_no_import` regression guard (Handbook tenet 2: using, never import).
Use `using CairoMakie: CairoMakie, Makie` instead: it loads CairoMakie, keeps
Makie's `plot`/`plot!` out of Main (no clash with Plots in `@docs` blocks),
and still enables the SVG backend / disables PNG output.
@ocots
ocots merged commit 5dc85a2 into main Sep 1, 2026
3 checks passed
@ocots
ocots deleted the fix/meta-no-import-cairomakie branch September 1, 2026 22:14
@ocots ocots mentioned this pull request Sep 2, 2026
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