ruff/crates
Andrew Gallant 84ba4ecaf5 ruff_annotate_snippets: support overriding the "cut indicator"
We do this because `...` is valid Python, which makes it pretty likely
that some line trimming will lead to ambiguous output. So we add support
for overriding the cut indicator. This also requires changing some of
the alignment math, which was previously tightly coupled to `...`.

For Ruff, we go with `…` (`U+2026 HORIZONTAL ELLIPSIS`) for our cut
indicator.

For more details, see the patch sent to upstream:
https://github.com/rust-lang/annotate-snippets-rs/pull/172
2025-01-15 13:37:52 -05:00
..
red_knot
red_knot_python_semantic
red_knot_server
red_knot_test
red_knot_vendored
red_knot_wasm
red_knot_workspace
ruff
ruff_annotate_snippets ruff_annotate_snippets: support overriding the "cut indicator" 2025-01-15 13:37:52 -05:00
ruff_benchmark
ruff_cache
ruff_db
ruff_dev
ruff_diagnostics
ruff_formatter
ruff_graph
ruff_index
ruff_linter ruff_annotate_snippets: support overriding the "cut indicator" 2025-01-15 13:37:52 -05:00
ruff_macros
ruff_notebook
ruff_python_ast
ruff_python_ast_integration_tests
ruff_python_codegen
ruff_python_formatter
ruff_python_index
ruff_python_literal
ruff_python_parser ruff_annotate_snippets: support overriding the "cut indicator" 2025-01-15 13:37:52 -05:00
ruff_python_resolver
ruff_python_semantic
ruff_python_stdlib
ruff_python_trivia
ruff_python_trivia_integration_tests
ruff_server
ruff_source_file
ruff_text_size
ruff_wasm
ruff_workspace