Skip to content

fix(BREAKING): use a dash as the range separator in --lines (ex. 10-20) - #1341

Merged
dsherret merged 1 commit into
mainfrom
fix-lines-range-separator
Oct 11, 2026
Merged

dsherret merged 1 commit into
mainfrom
fix-lines-range-separator

Conversation

@dsherret

@dsherret dsherret commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #1329 addressing #1329 (comment).

The syntax of --lines is now [file-path:]first-last[,first-last]... (ex. --lines src/main.ts:10-20,35-40,52) instead of using : between the first and last line. A colon conventionally means row:column in editors and ruff's --range also uses - for the range, so this aligns with that. The colon now only separates the file path from the ranges.

@dsherret dsherret changed the title fix: use a dash as the range separator in --lines (ex. 10-20) fix(BREAKING): use a dash as the range separator in --lines (ex. 10-20) Oct 11, 2026
@dsherret
dsherret merged commit 6bf5d5d into main Oct 11, 2026
22 checks passed
@dsherret
dsherret deleted the fix-lines-range-separator branch October 11, 2026 15:06
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