Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: astral-sh/ruff
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.9.8
Choose a base ref
...
head repository: astral-sh/ruff
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.9.9
Choose a head ref
  • 8 commits
  • 24 files changed
  • 5 contributors

Commits on Feb 27, 2025

  1. Allow passing ParseOptions to inline tests (#16357)

    ## 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>
    ntBre and AlexWaygood authored Feb 27, 2025
    Configuration menu
    Copy the full SHA
    764aa0e View commit details
    Browse the repository at this point in the history
  2. Show version-related syntax errors in the playground (#16419)

    ## Summary
    
    Fixes part of #16417 by
    converting `unsupported_syntax_errors` into playground diagnostics.
    
    ## Test Plan
    
    A new `ruff_wasm` test, plus trying out the playground locally:
    
    Default settings:
    
    ![image](https://github.com/user-attachments/assets/94377ab5-4d4c-44d3-ae63-fe328a53e083)
    
    `target-version = "py310"`:
    
    ![image](https://github.com/user-attachments/assets/51c312ce-70e7-43d3-b6ba-098f2750cb28)
    ntBre authored Feb 27, 2025
    Configuration menu
    Copy the full SHA
    cf83584 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2025

  1. Configuration menu
    Copy the full SHA
    a8e171f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0ced8d0 View commit details
    Browse the repository at this point in the history
  3. Prioritize "bug" label for changelog sections (#16433)

    ## Summary
    
    This PR updates the ordering of changelog sections to prioritize `bug`
    label such that any PRs that has that label is categorized in "Bug
    fixes" section in when generating the changelog irrespective of any
    other labels present on the PR.
    
    I think this works because I've seen PRs with both `server` and `bug` in
    the "Server" section instead of the "Bug fixes" section. For example,
    #16262 in
    https://github.com/astral-sh/ruff/releases/tag/0.9.7.
    
    On that note, this also changes the ordering such that any PR with both
    `server` and `bug` labels are in the "Bug fixes" section instead of the
    "Server" section. This is in line with how "Formatter" is done. I think
    it makes sense to instead prefix the entries with "Formatter:" and
    "Server:" if they're bug fixes. But, I'm happy to change this such that
    any PRs with `formatter` and `server` labels are always in their own
    section irrespective of other labels.
    dhruvmanila authored Feb 28, 2025
    Configuration menu
    Copy the full SHA
    af62f79 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4a23756 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3d72138 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    091d0af View commit details
    Browse the repository at this point in the history
Loading