mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-03 07:04:53 +00:00
![]() ## Summary Fixes https://github.com/astral-sh/ruff/issues/16476 fixes: #11453 We format notebooks cell by cell. That means, that offsets in parse errors are relative to the cell and not the entire document. We didn't account for this fact when emitting syntax errors for notebooks in the formatter. This PR ensures that we correctly offset parse errors by the cell location. ## Test Plan Added test (it panicked before) |
||
---|---|---|
.. | ||
resources/test/fixtures | ||
src | ||
tests | ||
build.rs | ||
Cargo.toml |