mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-23 10:32:49 +00:00
![]() ## Summary This PR adds support for a pragma-style header for inline parser tests containing JSON-serialized `ParseOptions`. For example, ```python # parse_options: { "target-version": "3.9" } match 2: case 1: pass ``` The line must start with `# parse_options: ` and then the rest of the (trimmed) line is deserialized into `ParseOptions` used for parsing the the test. ## Test Plan Existing inline tests, plus two new inline tests for `match-before-py310`. --------- Co-authored-by: Alex Waygood <alex.waygood@gmail.com> |
||
---|---|---|
.. | ||
snapshots | ||
expression.rs | ||
helpers.rs | ||
mod.rs | ||
options.rs | ||
pattern.rs | ||
progress.rs | ||
recovery.rs | ||
statement.rs | ||
tests.rs |