Skip to content

Bump black from 26.5.1 to 26.10.0 - #143

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/black-26.10.0
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/black-26.10.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Bumps black from 26.5.1 to 26.10.0.

Release notes

Sourced from black's releases.

26.10.0

Stable style

  • --line-ranges no longer inserts an empty line after a docstring when the range covers only the docstring itself (#5312)
  • Fix # fmt: skip on a bracketed ternary turning the surrounding tuple into a call (#5464)
  • Fix crash when # fmt: skip is placed on a one-line function or class with PEP 695 type parameters (#5429)
  • Fix an inline comment after the closing bracket of optional parentheses being moved inside the parentheses when the parenthesized expression contains own-line comments (#5395)
  • Fix unparseable output when # fmt: skip is placed on a bracket of an if, while, for, or with header (#5401, #5405)
  • Fix crash when formatting parenthesized expressions with multiple inline comments and # fmt: skip (#5414)
  • Fix parsing Jupyter notebook assignment magics when non-ASCII characters appear earlier on the line (#5381)
  • Preserve blank lines that come immediately before a # fmt: on comment (#5300)
  • Keep the parentheses around the target of an annotated assignment (e.g. (x): int = 5), which prevent CPython from including the name in __annotations__ (#5321)
  • Stop treating a t-string in docstring position as a docstring (e.g. t" spam " as the first statement of a module, class or function) (#5287)
  • Fix unparseable output for a t-string whose replacement field contains a quote (e.g. t'\'{a["b"]}\'') (#5265)
  • Fix unparseable output for a triple-quoted string whose body ends in an already-escaped double quote (e.g. '''\'''\"''') (#5262)
  • Fix --skip-magic-trailing-comma dropping the trailing comma from a split single-element tuple used as a lambda parameter default (#5246)
  • Fix unstable formatting when an inline comment sits on optional parentheses (e.g. a parenthesized assert message) (#5241)
  • Fix --skip-magic-trailing-comma dropping the trailing comma of a one-element subscript (a[x,]) when the line is long enough to be split and contains a power operator (#5272)
  • Fix crash when a standalone comment sits between tokens of a comprehension or lambda (#5144)
  • Fix inline comments on a bracket inside a comprehension being dropped (#5330)
  • Respect the magic trailing comma in a PEP 695 type parameter list containing a *TypeVarTuple or **ParamSpec (#5244)
  • Fix crash when a comment-only # fmt: off/# fmt: on block is followed by a with statement after another standalone comment (#5189)
  • Fix a crash when splitting case case if ... match patterns at very small line lengths (#5147)
  • Fix multiline docstring indentation when leading tabs are used inside indented docstrings (#5148)
  • Respect # fmt: skip on a line that opens a bracket (e.g. from x import ( # fmt: skip) when a standalone comment is among the bracket's contents (#5161)
  • Fix an AST safety error when separate # type: ignore comments in a parenthesized

... (truncated)

Changelog

Sourced from black's changelog.

Version 26.10.0

Stable style

  • --line-ranges no longer inserts an empty line after a docstring when the range covers only the docstring itself (#5312)
  • Fix # fmt: skip on a bracketed ternary turning the surrounding tuple into a call (#5464)
  • Fix crash when # fmt: skip is placed on a one-line function or class with PEP 695 type parameters (#5429)
  • Fix an inline comment after the closing bracket of optional parentheses being moved inside the parentheses when the parenthesized expression contains own-line comments (#5395)
  • Fix unparseable output when # fmt: skip is placed on a bracket of an if, while, for, or with header (#5401, #5405)
  • Fix crash when formatting parenthesized expressions with multiple inline comments and # fmt: skip (#5414)
  • Fix parsing Jupyter notebook assignment magics when non-ASCII characters appear earlier on the line (#5381)
  • Preserve blank lines that come immediately before a # fmt: on comment (#5300)
  • Keep the parentheses around the target of an annotated assignment (e.g. (x): int = 5), which prevent CPython from including the name in __annotations__ (#5321)
  • Stop treating a t-string in docstring position as a docstring (e.g. t" spam " as the first statement of a module, class or function) (#5287)
  • Fix unparseable output for a t-string whose replacement field contains a quote (e.g. t'\'{a["b"]}\'') (#5265)
  • Fix unparseable output for a triple-quoted string whose body ends in an already-escaped double quote (e.g. '''\'''\"''') (#5262)
  • Fix --skip-magic-trailing-comma dropping the trailing comma from a split single-element tuple used as a lambda parameter default (#5246)
  • Fix unstable formatting when an inline comment sits on optional parentheses (e.g. a parenthesized assert message) (#5241)
  • Fix --skip-magic-trailing-comma dropping the trailing comma of a one-element subscript (a[x,]) when the line is long enough to be split and contains a power operator (#5272)
  • Fix crash when a standalone comment sits between tokens of a comprehension or lambda (#5144)
  • Fix inline comments on a bracket inside a comprehension being dropped (#5330)
  • Respect the magic trailing comma in a PEP 695 type parameter list containing a *TypeVarTuple or **ParamSpec (#5244)
  • Fix crash when a comment-only # fmt: off/# fmt: on block is followed by a with statement after another standalone comment (#5189)
  • Fix a crash when splitting case case if ... match patterns at very small line lengths (#5147)
  • Fix multiline docstring indentation when leading tabs are used inside indented docstrings (#5148)
  • Respect # fmt: skip on a line that opens a bracket (e.g. from x import ( # fmt: skip) when a standalone comment is among the bracket's contents (#5161)

... (truncated)

Commits
  • 4f1883b Prepare release 26.10.0 (#5478)
  • 93e5c82 Do not split a docstring on non-newline characters (#5461)
  • 2f3f992 Fix superlinear runtime growth with the number of input files (#5450)
  • d078e8e Refactor release process to be more automated and use immutable releases (#5296)
  • 6408e69 Preserve leaf line numbers in append_leaves to prevent pragma line collapse (...
  • cf8560b Add is_formatted output to GitHub Action (#3526) (#5408)
  • 9b65aa3 docs(contributing): fix two grammar typos in issue_triage.md (#5426)
  • e1c4783 Fix --force-exclude for paths containing .. (#5471)
  • 34bfc69 Fix duplicated comments when string_processing rewrites a line (#5449)
  • 5fe7881 Fix preview blank lines after a stub method (#5439)
  • Additional commits viewable in compare view

@dependabot
dependabot Bot requested a review from a team as a code owner October 26, 2026 00:53
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Oct 26, 2026
@github-actions

Copy link
Copy Markdown

🤖 Claude Code Review

PR review: bump black 26.5.1 → 26.10.0 (Python > 3.11)

The diff changes one line in pyproject.toml:73. It is a Dependabot bump of a lint-only dependency.

Code Quality

  • ✅ Style: The pin format matches the neighbouring entries, including the python_version marker.
  • ✅ No commented-out code.
  • ✅ Variable names: Not applicable.
  • ✅ DRY: Not applicable.
  • ⚠️ Defects: There are no runtime effects, because black is in the lint group and not a runtime dependency. Black minor releases often change formatting, such as the stable style promoted from preview features each January. If any .py file is reformatted, the CI black --check job will fail, so confirm that job is green before merging. The python_version <= '3.11' pin stays at 25.11.0, which is correct, since newer black dropped older Pythons.
  • ✅ .claude/CLAUDE.md: It is unchanged and contains nothing specific to a local environment.

Testing

  • ✅ Unit and integration tests, edge cases, coverage: Not applicable, since no code changed. CI (lint plus the 3.10–3.13 matrix) is the real validation.

Documentation

  • ✅ README and API docs: No update is needed.
  • ⚠️ CHANGELOG.md: It is not updated. That is acceptable for a dev-dependency bump, but check whether the project's convention requires an entry for Dependabot changes.
  • ✅ Markdown: No markdown files were changed.

Security

  • ✅ Credentials, input validation, error handling and logging: No credentials, input handling, error handling or logging changes.
  • ✅ License files: No .lic files and no AQAAAD strings.

Verdict

Approve, provided CI is green. The one thing to check is that black --check still passes under 26.10.0 on Python 3.12 and 3.13.

Automated code review analyzing defects and coding standards

Bumps [black](https://github.com/psf/black) from 26.5.1 to 26.10.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@26.5.1...26.10.0)

---
updated-dependencies:
- dependency-name: black
  dependency-version: 26.10.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/pip/black-26.10.0 branch from bfbc377 to 1ef7d6b Compare October 26, 2026 00:59
@github-actions

Copy link
Copy Markdown

🤖 Claude Code Review

PR Review: Bump black from 26.5.1 to 26.10.0

The diff changes one line in pyproject.toml. It raises the black pin for python_version > '3.11' from 26.5.1 to 26.10.0. I didn't run the tests or the linters, so this review rests on the diff alone.

Code Quality

  • ✅ Style conventions: The change matches the existing pin format. The python_version markers are unchanged, and black==25.11.0 for Python ≤3.11 is untouched.
  • ✅ No commented-out code: None added.
  • ✅ Variable names and DRY: Not applicable.
  • ✅ Defects: I found none. Black is a dev-only lint dependency, so the mapper at runtime is unaffected.
    • Black's annual major release (the 26.x series uses calendar versioning) may change formatting for some files. If CI's black --check fails, run black on the affected files and commit the result.
    • Black 26.10.0 should support the Python versions in the > 3.11 branch (3.12 and 3.13). I haven't checked this against its release notes.
  • ✅ .claude/CLAUDE.md: It is generic and has no local-environment specifics. This PR doesn't touch it.

Testing

  • ✅ Unit and integration tests, edge cases: None are needed for a tooling version bump.
  • ⚠️ Coverage: Nothing here changes coverage. Confirm that the CI lint job passes on Python 3.12 and 3.13 with the new black version.

Documentation

  • ⚠️ CHANGELOG.md: It is not updated. Dependabot bumps of dev tooling are usually left out of the changelog in this repo. Add an entry if the project's convention says otherwise.
  • ✅ README and API docs: No updates needed.
  • ✅ Markdown: No markdown files changed.

Security

  • ✅ No hardcoded credentials, sensitive data in logs, or .lic files: None present, and no strings starting with AQAAAD.
  • ✅ Input validation and error handling: Not applicable.
  • ✅ Supply chain: The package is pinned to an exact version. The version comes from the official black PyPI package, as a Dependabot bump.

Summary

The change is low risk and can be approved. Merge it once CI is green, in particular the black --check step on Python 3.12 and 3.13.

Automated code review analyzing defects and coding standards

@dependabot @github

dependabot Bot commented on behalf of github Oct 26, 2026

Copy link
Copy Markdown
Contributor Author

Looks like black is up-to-date now, so this is no longer needed.

@dependabot dependabot Bot closed this Oct 26, 2026
@dependabot
dependabot Bot deleted the dependabot/pip/black-26.10.0 branch October 26, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants