ruff
[ty] Fix empty spans following a line terminator and unprintable character spans in diagnostics
#19535
Merged

[ty] Fix empty spans following a line terminator and unprintable character spans in diagnostics #19535

ntBre merged 21 commits into main from brent/empty-span-after-line-terminator
ntBre
ntBre ntBre added internal
ntBre ntBre added diagnostics
github-actions
ntBre
ntBre ntBre force pushed from d0c91941 to b9d27c63 151 days ago
ntBre
ntBre commented on 2025-07-25
ntBre add test demonstrating the problem
366841e3
ntBre port fix to ruff_db
7c31a78f
ntBre add a test for unprintable characters
02560f75
ntBre working version with partial SourceCode port
f7d28b1e
ntBre accept fixed snapshot for unprintable characters
0c4652a0
ntBre port over a minimal LineWidthBuilder and IndentWidth
c22449c6
ntBre fix docstring
d7461459
ntBre move snapshots back to their own files for easier diffing
fffbb7df
ntBre fix panic caused by replace_whitespace_and_unprintable
fe82d7be
ntBre delete debugging test handled by full snapshot
665909e4
ntBre ntBre force pushed from b9d27c63 to 665909e4 151 days ago
github-actions
ntBre strip down LineWidthBuilder a bit more
6180806f
ntBre ntBre changed the title Fix empty spans following a line terminator in `ruff_db` Fix empty spans following a line terminator and unprintable character spans in `ruff_db` 151 days ago
ntBre ntBre marked this pull request as ready for review 151 days ago
ntBre ntBre requested a review from carljm carljm 151 days ago
ntBre ntBre requested a review from MichaReiser MichaReiser 151 days ago
ntBre ntBre requested a review from AlexWaygood AlexWaygood 151 days ago
ntBre ntBre requested a review from sharkdp sharkdp 151 days ago
ntBre ntBre requested a review from dcreager dcreager 151 days ago
ntBre ntBre removed review request from dcreager dcreager 151 days ago
ntBre ntBre removed review request from carljm carljm 151 days ago
ntBre ntBre removed review request from sharkdp sharkdp 151 days ago
ntBre ntBre removed review request from AlexWaygood AlexWaygood 151 days ago
ntBre ntBre requested a review from BurntSushi BurntSushi 151 days ago
MichaReiser MichaReiser added ty
MichaReiser MichaReiser changed the title Fix empty spans following a line terminator and unprintable character spans in `ruff_db` Fix empty spans following a line terminator and unprintable character spans in Diagnostics 151 days ago
MichaReiser MichaReiser changed the title Fix empty spans following a line terminator and unprintable character spans in Diagnostics Fix empty spans following a line terminator and unprintable character spans in diagnostics 151 days ago
MichaReiser
MichaReiser commented on 2025-07-26
MichaReiser
MichaReiser approved these changes on 2025-07-26
MichaReiser MichaReiser removed internal
MichaReiser MichaReiser changed the title Fix empty spans following a line terminator and unprintable character spans in diagnostics [ty] Fix empty spans following a line terminator and unprintable character spans in diagnostics 151 days ago
ntBre inline LineWidthBuilder, move variables closer to their use
9c82529f
ntBre combine character matches
30316731
ntBre strip down tests and move them to ruff_db
a4f74340
ntBre clippy
cdef1a17
ntBre make the comments match the tests
f6064536
ntBre delete unused secondary codes and un-pub the method
a1b3dcfc
ntBre temporarily revert original_range, add panicking test case
f5410bfc
ntBre restore original_range, accept snapshot
5ae6367a
ntBre handle `\r` in fix_up_empty_spans_after_line_terminator
2e2ef661
BurntSushi
BurntSushi approved these changes on 2025-07-28
ntBre avoid collecting `original_ranges`
c42ea1da
github-actions
ntBre ntBre merged a54061e7 into main 148 days ago
ntBre ntBre deleted the brent/empty-span-after-line-terminator branch 148 days ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone