ruff/crates/ruff_python_trivia_integration_tests
Dhruv Manilawala 549cc1e437
Build CommentRanges outside the parser (#11792)
## Summary

This PR updates the parser to remove building the `CommentRanges` and
instead it'll be built by the linter and the formatter when it's
required.

For the linter, it'll be built and owned by the `Indexer` while for the
formatter it'll be built from the `Tokens` struct and passed as an
argument.

## Test Plan

`cargo insta test`
2024-06-09 09:55:17 +00:00
..
src Remove cyclic dev dependency with the parser crate (#11261) 2024-05-07 09:24:57 +00:00
tests Build CommentRanges outside the parser (#11792) 2024-06-09 09:55:17 +00:00
Cargo.toml Maintain synchronicity between the lexer and the parser (#11457) 2024-06-03 18:23:50 +05:30
README.md Remove cyclic dev dependency with the parser crate (#11261) 2024-05-07 09:24:57 +00:00

Integration tests for ruff_python_trivia

This crate includes integration tests for the ruff_python_trivia crate.

The reason for having a separate crate is to avoid introducing a dev circular dependency between the ruff_python_parser crate and the ruff_python_trivia crate.

This crate shouldn't include any code, only tests.

Reference: