Skip to content

Allow explicit lint-free preview exports (#2209) - #2214

Merged
pzfreo merged 2 commits into
mainfrom
fix/2209-preview-export-lint-opt-out
Oct 7, 2026
Merged

pzfreo merged 2 commits into
mainfrom
fix/2209-preview-export-lint-opt-out

Conversation

@pzfreo

@pzfreo pzfreo commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Fixes #2209 with the explicit opt-out from the issue proposal. Drawing.export(..., lint=False) skips only the export-time lint/log pass for disposable previews; default exports still lint and finalize still runs. The public docstring warns callers to lint or use default export before treating output as final. Focused behavior test passes; ruff, mypy and codespell pass.

@pzfreo
pzfreo enabled auto-merge (squash) October 6, 2026 23:22
@pzfreo
pzfreo force-pushed the fix/2209-preview-export-lint-opt-out branch from 3c26a1b to 8bed654 Compare October 7, 2026 01:04
@pzfreo
pzfreo merged commit ffb22c1 into main Oct 7, 2026
19 checks passed
@pzfreo
pzfreo deleted the fix/2209-preview-export-lint-opt-out branch October 7, 2026 01:47
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.

export() re-runs lint: let a caller skip it, or reuse an unchanged drawing's result

1 participant