Thanks to visit codestin.com
Credit goes to github.com

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: hauntsaninja/black
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: psf/black
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 9 commits
  • 13 files changed
  • 3 contributors

Commits on Sep 18, 2025

  1. Add normalizing for \r style newlines (psf#4710)

    * Normalize newlines
    
    * Fix tired mistakes
    
    * Add changelog entry
    
    * Update documentation
    
    * Move changes to preview
    
    * Fix test formatting
    
    * Update schema
    
    * Fix typo in CHANGES.md
    
    Co-authored-by: Jelle Zijlstra <[email protected]>
    
    * Fix typo in docs/the_black_code_style/future_style.md
    
    Co-authored-by: Jelle Zijlstra <[email protected]>
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    ---------
    
    Co-authored-by: Jelle Zijlstra <[email protected]>
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    3 people authored Sep 18, 2025
    Configuration menu
    Copy the full SHA
    626b32f View commit details
    Browse the repository at this point in the history
  2. Fix schema generation error caused by new click version (psf#4750)

    * Fix schema generation error caused by new click version
    Not sure on the policy for updating versions, so to cope with the new click 8.3.0 version I used some code from psf#4577 for version conditional behavior. When >= 8.3.0, unset defaults are now the special UNSET sentinal instead of None.
    Hopefully nothing breaks on the click._utils usage since it's an _ module, might have to find a different solution if it does.
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Add ignore for mypy error
    
    * Actually fix mypy errors with ignore
    
    * Add explanation for ignores
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    MeGaGiGaGon and pre-commit-ci[bot] authored Sep 18, 2025
    Configuration menu
    Copy the full SHA
    ffc01a0 View commit details
    Browse the repository at this point in the history
  3. Prepare docs for release 25.9.0 (psf#4751)

    * Prepare docs for release 25.9.0
    
    * Remove unreleased changelog section
    MeGaGiGaGon authored Sep 18, 2025
    Configuration menu
    Copy the full SHA
    af0ba72 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2025

  1. Configuration menu
    Copy the full SHA
    96ef60e View commit details
    Browse the repository at this point in the history
  2. Add utf-8 encoding to opens in release.py (psf#4752)

    Git by default uses utf-8 file encodings, so these files will always be utf-8. On a windows system without PYTHONUTF8 set, these opens will fail (normal black doesn't have this issue because it detects file encodings automatically).
    
    This PR makes it so that the opens always use utf-8 mode, so the script will always work on windows systems.
    MeGaGiGaGon authored Sep 19, 2025
    Configuration menu
    Copy the full SHA
    9363888 View commit details
    Browse the repository at this point in the history
  3. Fix regexes in releases.py (psf#4753)

    When making these previously I forgot to add the multiline flag that makes them work.
    
    I prefer using (?m) instead of re.Multiline for flags, since when reading a regex it's a lot more obvious, being placed at the begining instead of the end.
    MeGaGiGaGon authored Sep 19, 2025
    Configuration menu
    Copy the full SHA
    147129d View commit details
    Browse the repository at this point in the history
  4. Fix FAQ async version number (psf#4754)

    When originally making the change, I assumed we were having a release in Feb, so I put the number as 25.2.0. Since that didn't happen, the number needs to be changed to 25.9.0.
    MeGaGiGaGon authored Sep 19, 2025
    Configuration menu
    Copy the full SHA
    6384eeb View commit details
    Browse the repository at this point in the history
  5. Improvements for release_process.md (psf#4756)

    * Improvements for release_process.md
    
    While cutting 25.9.0, I ran into a few snags, so this PR smooths out the issues I ran into in the docs:
    
    - Minor typo fix
    - Since the stable branch is updated by the release workflow, `git diff origin/stable CHANGES.md` should always work, which is much easier than having to find a commit hash
    - The example PR given had the new template already applied, which confused me. I eventually used the 25.1.0 pr as a template instead
    - GitHub appears to now use the last commit message as the release message instead of the tag name, so it will need to be entered manually going forwards
    
    * Update release_process.md
    
    There is now a check to prevent any direct pushes to main, so a PR has to be made
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    MeGaGiGaGon and pre-commit-ci[bot] authored Sep 19, 2025
    Configuration menu
    Copy the full SHA
    43135e9 View commit details
    Browse the repository at this point in the history
  6. Improve generate_schema.py 8.3.0 code (psf#4758)

    After talking for a bit on the click discord, I was pointed to the `to_info_dict` function.
    
    Since the functionality of `to_info_dict` was preserved between 8.2.0 and 8.3.0, using it makes the code much cleaner while having the same effect.
    
    Theoretically, the entirety of the function could re-use `to_info_dict`, but there are two problems: No `is_eager` detection, and it's currently untyped besides `dict[str, Any]`, so I decided against it and just did the one improvement.
    MeGaGiGaGon authored Sep 19, 2025
    Configuration menu
    Copy the full SHA
    4a8e6b7 View commit details
    Browse the repository at this point in the history
Loading