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: PyCQA/isort
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8.0.0
Choose a base ref
...
head repository: PyCQA/isort
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8.0.1
Choose a head ref
  • 4 commits
  • 3 files changed
  • 4 contributors

Commits on Feb 17, 2026

  1. Fix unindented comments being corrupted in indented blocks

    When an unindented comment appears before an indented import block,
    isort blindly strips `len(indent)` characters from the start of every
    line. This corrupts comments that don't start with the expected indent.
    
    For example:
    ```python
    if True:
    # this will get cut off
        import os
    ```
    became:
    ```python
    if True:
    is will get cut off
        import os
    ```
    
    The fix checks whether each line actually starts with the indent
    before stripping it.
    
    Fixes #1899
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    Friday and claude committed Feb 17, 2026
    Configuration menu
    Copy the full SHA
    fd2514b View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2026

  1. Merge pull request #2459 from Fridayai700/fix-unindented-comment-corr…

    …uption
    
    Fix unindented comments being corrupted in indented blocks
    DanielNoord authored Feb 19, 2026
    Configuration menu
    Copy the full SHA
    b5f06a7 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2026

  1. Configuration menu
    Copy the full SHA
    878ba7e View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2026

  1. Merge pull request #2463 from FinlayTheBerry/issue/2461

    Fix #2461: Added compression to stdlibs for Python 3.14 in isort/stdlibs/py314.py
    DanielNoord authored Feb 28, 2026
    Configuration menu
    Copy the full SHA
    a333737 View commit details
    Browse the repository at this point in the history
Loading