Format README code block for ruff 0.16 - #307
Open
vahid-ahmadi wants to merge 1 commit into
Open
Conversation
ruff 0.16 formats Python code blocks inside Markdown, so `make lint` fails on a clean main: the README usage example uses single quotes and an expanded dict literal. The lint job installs `ruff>=0.9.0` with no upper bound, so CI picks up 0.16.x and every PR shows a red lint job. Applying `ruff format` to the README fixes it without pinning ruff. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This was referenced Aug 31, 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.
Closes #305
Problem
make lintfails on a clean checkout ofmain, so the lint job is red for every PR regardless of its contents.ruff 0.16 began formatting Python code blocks embedded in Markdown. The README usage example uses single quotes and an expanded dict literal, which ruff now wants to reformat. The lint job installs
ruff>=0.9.0with no upper bound, so CI resolves 0.16.x.Bisected against
main:The jump from 8 to 16 files is ruff 0.16 picking up the Markdown files.
Change
Ran
ruff formaton the README. Only the fenced example changes (double quotes, collapsed dict) — no prose, no behaviour.Pinning an upper bound on ruff would also work, but formatting the block keeps the repo compatible with whatever CI resolves next.
Verification
make lint— passes (16 files already formatted)make test— 62 passed on pandas 3.0.5 and pandas 2.3.3This one should merge first — the other PRs in this batch will show a red lint job until it does.