Skip to content

Bump black from 25.12.0 to 26.1.0#22

Merged
docktermj merged 1 commit intomainfrom
dependabot/pip/black-26.1.0
Feb 9, 2026
Merged

Bump black from 25.12.0 to 26.1.0#22
docktermj merged 1 commit intomainfrom
dependabot/pip/black-26.1.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 9, 2026

Bumps black from 25.12.0 to 26.1.0.

Release notes

Sourced from black's releases.

26.1.0

Highlights

Introduces the 2026 stable style (#4892), stabilizing the following changes:

  • always_one_newline_after_import: Always force one blank line after import statements, except when the line after the import is a comment or an import statement (#4489)
  • fix_fmt_skip_in_one_liners: Fix # fmt: skip behavior on one-liner declarations, such as def foo(): return "mock" # fmt: skip, where previously the declaration would have been incorrectly collapsed (#4800)
  • fix_module_docstring_detection: Fix module docstrings being treated as normal strings if preceded by comments (#4764)
  • fix_type_expansion_split: Fix type expansions split in generic functions (#4777)
  • multiline_string_handling: Make expressions involving multiline strings more compact (#1879)
  • normalize_cr_newlines: Add \r style newlines to the potential newlines to normalize file newlines both from and to (#4710)
  • remove_parens_around_except_types: Remove parentheses around multiple exception types in except and except* without as (#4720)
  • remove_parens_from_assignment_lhs: Remove unnecessary parentheses from the left-hand side of assignments while preserving magic trailing commas and intentional multiline formatting (#4865)
  • standardize_type_comments: Format type comments which have zero or more spaces between # and type: or between type: and value to # type: (value) (#4645)

The following change was not in any previous stable release:

  • Regenerated the _width_table.py and added tests for the Khmer language (#4253)

This release alo bumps pathspec to v1 and fixes inconsistencies with Git's .gitignore logic (#4958). Now, files will be ignored if a pattern matches them, even if the parent directory is directly unignored. For example, Black would previously format exclude/not_this/foo.py with this .gitignore:

exclude/
!exclude/not_this/

Now, exclude/not_this/foo.py will remain ignored. To ensure exclude/not_this/ and all of it's children are included in formatting (and in Git), use this .gitignore:

*/exclude/*
!*/exclude/not_this/

This new behavior matches Git. The leading */ are only necessary if you wish to ignore matching subdirectories (like the previous behavior did), and not just matching root

... (truncated)

Changelog

Sourced from black's changelog.

26.1.0

Highlights

Introduces the 2026 stable style (#4892), stabilizing the following changes:

  • always_one_newline_after_import: Always force one blank line after import statements, except when the line after the import is a comment or an import statement (#4489)
  • fix_fmt_skip_in_one_liners: Fix # fmt: skip behavior on one-liner declarations, such as def foo(): return "mock" # fmt: skip, where previously the declaration would have been incorrectly collapsed (#4800)
  • fix_module_docstring_detection: Fix module docstrings being treated as normal strings if preceded by comments (#4764)
  • fix_type_expansion_split: Fix type expansions split in generic functions (#4777)
  • multiline_string_handling: Make expressions involving multiline strings more compact (#1879)
  • normalize_cr_newlines: Add \r style newlines to the potential newlines to normalize file newlines both from and to (#4710)
  • remove_parens_around_except_types: Remove parentheses around multiple exception types in except and except* without as (#4720)
  • remove_parens_from_assignment_lhs: Remove unnecessary parentheses from the left-hand side of assignments while preserving magic trailing commas and intentional multiline formatting (#4865)
  • standardize_type_comments: Format type comments which have zero or more spaces between # and type: or between type: and value to # type: (value) (#4645)

The following change was not in any previous stable release:

  • Regenerated the _width_table.py and added tests for the Khmer language (#4253)

This release alo bumps pathspec to v1 and fixes inconsistencies with Git's .gitignore logic (#4958). Now, files will be ignored if a pattern matches them, even if the parent directory is directly unignored. For example, Black would previously format exclude/not_this/foo.py with this .gitignore:

exclude/
!exclude/not_this/

Now, exclude/not_this/foo.py will remain ignored. To ensure exclude/not_this/ and all of it's children are included in formatting (and in Git), use this .gitignore:

*/exclude/*
!*/exclude/not_this/

This new behavior matches Git. The leading */ are only necessary if you wish to ignore

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Resolves #4892
Resolves #4489
Resolves #4800
Resolves #4764
Resolves #4777
Resolves #1879
Resolves #4710
Resolves #4720
Resolves #4865
Resolves #4645
Resolves #4253
Resolves #4958
Resolves #4961
Resolves #4952
Resolves #4919
Resolves #4923
Resolves #4922
Resolves #4957
Resolves #4928
Resolves #4933

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

---
updated-dependencies:
- dependency-name: black
  dependency-version: 26.1.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Feb 9, 2026
@dependabot dependabot bot requested a review from a team as a code owner February 9, 2026 00:54
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Feb 9, 2026
@github-actions
Copy link

github-actions bot commented Feb 9, 2026

🤖 Claude Code Review


Code Review: Bump black from 25.12.0 to 26.1.0

Code Quality

Code follows our style guide - This is a dependency version update in pyproject.toml, not application code. The file formatting is correct and consistent.

No commented-out code - N/A for this change type.

Meaningful variable names - N/A for this change type.

DRY principle followed - N/A for this change type.

Identify Defects - No defects found. This is a straightforward dependency version bump from black==25.12.0 to black==26.1.0 on line 73 of pyproject.toml. The change only applies to Python versions > 3.11 as intended. This is an automated Dependabot update for a code formatter, which poses minimal risk.

Project memory claude configuration - The .claude/CLAUDE.md file contains appropriate general project guidance and does not contain environment-specific configurations.

Testing

⚠️ Unit tests for new functions - N/A for dependency updates, but should verify linting still passes after the major version bump.

⚠️ Integration tests for new endpoints - N/A

⚠️ Edge cases covered - N/A

⚠️ Test coverage > 80% - N/A for this change, but recommend running the lint command to verify: pylint $(git ls-files '*.py' ':!:docs/source/*') and running black to ensure no unexpected formatting changes occur with the major version bump (25.x → 26.x).

Documentation

Readme updated if needed - N/A for this type of change.

API docs updated - N/A

Inline comments for complex logic - N/A

CHANGELOG.md updated - The CHANGELOG.md has not been updated to reflect this dependency upgrade. While dependency bumps are often not included in user-facing changelogs, for a major version bump (25 → 26) of a linting tool, it may be worth noting in case formatting behavior changes.

Markdown files follow CommonMark - Not applicable to this PR (no markdown changes).

Security

No hardcoded credentials - N/A

Input validation implemented - N/A

Proper error handling - N/A

No sensitive data in logs - N/A

Flag any checked in license files (.lic) - No .lic files or AQAAAD strings detected in this diff.


Summary

Overall Assessment: ✅ APPROVED with recommendations

This is a clean, automated dependency update from Dependabot. The change is minimal and well-scoped:

File: pyproject.toml:73
Change: black==25.12.0black==26.1.0 (for Python > 3.11)

Recommendations:

  1. Verify linting passes - Since this is a major version bump of the Black formatter, run the lint command before merging to ensure no unexpected formatting changes:

    pylint $(git ls-files '*.py' ':!:docs/source/*')
  2. Consider CHANGELOG update - While not strictly required for dev dependency updates, documenting major version bumps of tools can help track potential formatting differences.

  3. CI should catch issues - Assuming CI runs linting, any breaking changes from Black 26.1.0 will be caught automatically.

No blocking issues found. The change is safe to merge once CI passes.

Automated code review analyzing defects and coding standards

@docktermj docktermj merged commit 87e24b3 into main Feb 9, 2026
13 checks passed
@docktermj docktermj deleted the dependabot/pip/black-26.1.0 branch February 9, 2026 12:26
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.

2 participants