Skip to content

chore(deps): update pre-commit hook psf/black to v25.12.0#538

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/psf-black-25.x
Open

chore(deps): update pre-commit hook psf/black to v25.12.0#538
renovate[bot] wants to merge 1 commit intomainfrom
renovate/psf-black-25.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Dec 11, 2025

This PR contains the following updates:

Package Type Update Change
psf/black repository minor 25.9.025.12.0

Note: The pre-commit manager in Renovate is not supported by the pre-commit maintainers or community. Please do not report any problems there, instead create a Discussion in the Renovate repository if you have any questions.


Release Notes

psf/black (psf/black)

v25.12.0

Compare Source

Highlights
  • Black no longer supports running with Python 3.9 (#​4842)
Stable style
  • Fix bug where comments preceding # fmt: off/# fmt: on blocks were incorrectly
    removed, particularly affecting Jupytext's # %% [markdown] comments (#​4845)
  • Fix crash when multiple # fmt: skip comments are used in a multi-part if-clause, on
    string literals, or on dictionary entries with long lines (#​4872)
  • Fix possible crash when fmt: directives aren't on the top level (#​4856)
Preview style
  • Fix fmt: skip skipping the line after instead of the line it's on (#​4855)
  • Remove unnecessary parentheses from the left-hand side of assignments while preserving
    magic trailing commas and intentional multiline formatting (#​4865)
  • Fix fix_fmt_skip_in_one_liners crashing on with statements (#​4853)
  • Fix fix_fmt_skip_in_one_liners crashing on annotated parameters (#​4854)
  • Fix new lines being added after imports with # fmt: skip on them (#​4894)
Packaging
  • Releases now include arm64 Windows binaries and wheels (#​4814)
Integrations
  • Add output-file input to GitHub Action psf/black to write formatter output to a
    file for artifact capture and log cleanliness (#​4824)

v25.11.0

Compare Source

Highlights
  • Enable base 3.14 support (#​4804)
  • Add support for the new Python 3.14 t-string syntax introduced by PEP 750 (#​4805)
Stable style
  • Fix bug where comments between # fmt: off and # fmt: on were reformatted (#​4811)
  • Comments containing fmt directives now preserve their exact formatting instead of
    being normalized (#​4811)
Preview style
  • Move multiline_string_handling from --unstable to --preview (#​4760)
  • Fix bug where module docstrings would be treated as normal strings if preceded by
    comments (#​4764)
  • Fix bug where python 3.12 generics syntax split line happens weirdly (#​4777)
  • Standardize type comments to form # type: <value> (#​4645)
  • Fix fix_fmt_skip_in_one_liners preview feature to respect # fmt: skip for compound
    statements with semicolon-separated bodies (#​4800)
Configuration
  • Add no_cache option to control caching behavior. (#​4803)
Packaging
  • Releases now include arm64 Linux binaries (#​4773)
Output
  • Write unchanged content to stdout when excluding formatting from stdin using pipes
    (#​4610)
Blackd
  • Implemented BlackDClient. This simple python client allows to easily send formatting
    requests to blackd (#​4774)
Integrations
  • Enable 3.14 base CI (#​4804)
  • Enhance GitHub Action psf/black to support the required-version major-version-only
    "stability" format when using pyproject.toml (#​4770)
  • Improve error message for vim plugin users. It now handles independently vim version
  • Vim: Warn on unsupported Vim and Python versions independently (#​4772)
  • Vim: Print the import paths when importing black fails (#​4675)
  • Vim: Fix handling of virtualenvs that have a different Python version (#​4675)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added auto-merge Bulldozer auto-merge dependencies labels Dec 11, 2025
@renovate renovate bot requested a review from a team as a code owner December 11, 2025 03:26
@codecov
Copy link

codecov bot commented Dec 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.09%. Comparing base (00ec251) to head (e79b529).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #538   +/-   ##
=======================================
  Coverage   91.09%   91.09%           
=======================================
  Files         111      111           
  Lines        4201     4201           
  Branches      552      552           
=======================================
  Hits         3827     3827           
  Misses        231      231           
  Partials      143      143           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link

github-actions bot commented Dec 11, 2025

Unit Test Results

    18 files  ±0      18 suites  ±0   34m 20s ⏱️ - 1m 38s
 1 212 tests ±0   1 212 ✅ ±0  0 💤 ±0  0 ❌ ±0 
15 840 runs  ±0  15 831 ✅ ±0  9 💤 ±0  0 ❌ ±0 

Results for commit e79b529. ± Comparison against base commit 00ec251.

♻️ This comment has been updated with latest results.

@renovate renovate bot force-pushed the renovate/psf-black-25.x branch from 0e6bfe7 to 94aa1a4 Compare January 8, 2026 02:30
@renovate renovate bot changed the title chore(deps): update pre-commit hook psf/black to v25.11.0 chore(deps): update pre-commit hook psf/black to v25.12.0 Jan 8, 2026
@neringaalt
Copy link
Contributor

/gemini review

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the psf/black pre-commit hook from version 25.9.0 to 25.12.0. While this is a good maintenance task, it's important to ensure that the version of black used in the pre-commit hook is consistent with the version used in the development environment. Currently, the pyproject.toml specifies black = "^25.0.0", which has resolved to 25.11.0 in poetry.lock. This discrepancy can lead to inconsistent formatting and CI failures. I've added a comment to suggest aligning these versions.

- id: black
repo: https://github.com/psf/black
rev: 25.9.0
rev: 25.12.0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This update to version 25.12.0 is good, but it creates a version mismatch with the black dependency in your development environment. Your pyproject.toml specifies black = "^25.0.0", which is currently locked to 25.11.0 in poetry.lock. To ensure consistent formatting between local runs and pre-commit hooks, it's best practice to align these versions. Please consider updating the black dependency in pyproject.toml to ^25.12.0 and regenerating the lock file.

@renovate renovate bot force-pushed the renovate/psf-black-25.x branch from 94aa1a4 to 8fb9f8f Compare February 2, 2026 15:10
@renovate renovate bot force-pushed the renovate/psf-black-25.x branch from 8fb9f8f to e79b529 Compare February 12, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge Bulldozer auto-merge dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant