[FIX] Apply Ruff fix to docs/gallery. - #1292
Open
genedan wants to merge 1 commit into
Open
Conversation
Pyright Type CompletenessView the full Project (full
Other symbols referenced but not exported by
Symbols without documentation:
Patch (exported symbols added or changed by this PR): no exported symbol type-completeness changes detected. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## gd_ruff_fix #1292 +/- ##
============================================
Coverage 91.67% 91.67%
============================================
Files 93 93
Lines 5443 5443
Branches 704 704
============================================
Hits 4990 4990
Misses 328 328
Partials 125 125
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
henrydingliu
approved these changes
Sep 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of Changes
This is my first time trying a stacked pull request, #1290 is the base. This one covers all the gallery docs, looking at the notebook diffs doesn't look too bad actually, I was worried we'd have a giant set of unreadable raw diffs.
Related GitHub Issue(s)
#1216
Additional Context for Reviewers
Checklist
uv run pytest) and documentation changes (uv run --directory docs jb build . --builder=custom --custom-builder=doctest)Note
Low Risk
Documentation-only formatting in gallery notebooks with no production code changes.
Overview
Reformats all
docs/galleryJupyter notebooks to match Ruff style: double-quoted strings, wrapped long lines, consistent spacing around operators, and tidier matplotlib/pipeline call layouts. A few notebooks drop redundant imports (e.g. duplicatechainladderimports) and minor comment tweaks (##→#).pyproject.tomldrops the per-file Ruffignoreoverrides that existed only for those gallery paths, since the notebooks now comply.Notebook logic is unchanged aside from cosmetic edits;
plot_capecod_onlevelno longer leaves the return value of intermediatepipe.fit(...)calls as cell output, while plotting still usesnamed_steps.model.ultimate_as before.Reviewed by Cursor Bugbot for commit 165f6b2. Bugbot is set up for automated code reviews on this repo. Configure here.