Skip to content

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

@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 17:48
@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 Results

✅ Code Quality

  • ✅ Code follows style guide: This is a dependency version update in a configuration file - no code style issues apply
  • ✅ No commented-out code: N/A - this is a configuration change
  • ✅ Meaningful variable names: N/A - no new variables introduced
  • ✅ DRY principle followed: N/A - configuration change
  • ✅ Identify Defects: No defects identified. The change updates Black from version 25.12.0 to 26.1.0 for Python > 3.11. This is a minor version bump of a code formatter - these are typically safe and backwards compatible
  • ✅ Project memory consideration: The change is in pyproject.toml which is a repository-level configuration file, appropriate for all developers

✅ Testing

  • ✅ Unit tests for new functions: N/A - no new functions
  • ✅ Integration tests for new endpoints: N/A - no new endpoints
  • ✅ Edge cases covered: N/A - dependency update only
  • ✅ Test coverage > 80%: This change doesn't affect test coverage (it's a linting tool update)

⚠️ Documentation

  • ⚠️ Readme updated if needed: Not applicable - dependency updates typically don't require README changes unless they introduce breaking changes or new features
  • ✅ API docs updated: N/A - no API changes
  • ✅ Inline comments for complex logic: N/A - no code logic changes
  • ❌ CHANGELOG.md updated: The CHANGELOG.md should be updated to document this dependency version bump. While minor, dependency updates are typically tracked in changelogs for transparency and reproducibility

File: /home/runner/work/mapper-base/mapper-base/CHANGELOG.md - Missing entry for Black version update

  • ✅ Markdown files formatted with prettier: No markdown files were modified in this PR

✅ Security

  • ✅ No hardcoded credentials: No credentials in this change
  • ✅ Input validation implemented: N/A - configuration change
  • ✅ Proper error handling: N/A - configuration change
  • ✅ No sensitive data in logs: N/A - configuration change
  • ✅ No .lic files or AQAAAD strings: None detected

Summary

Overall Assessment: ✅ APPROVED with minor suggestion

This is a clean dependency version update of the Black code formatter from 25.12.0 to 26.1.0 for Python versions > 3.11. The change is:

  • Safe: Black is a code formatter with stable APIs
  • Isolated: Only affects the linting dependency group
  • Version-specific: Correctly uses conditional dependency based on Python version

Minor Suggestion:
Consider adding an entry to CHANGELOG.md documenting this dependency update for tracking purposes (pyproject.toml:73).

No blocking issues identified.

Automated code review analyzing defects and coding standards

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 force-pushed the dependabot/pip/black-26.1.0 branch from 0f1e826 to d38c6ca Compare February 9, 2026 17:50
@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

Overview

This PR updates the black package version from 25.12.0 to 26.1.0 for Python 3.12+ environments in the lint dependency group.


Review Against Checklist

Code Quality

  • Code follows style guide: This is a simple dependency version bump in pyproject.toml. No code changes involved.
  • No commented-out code: Not applicable - this is a dependency version change.
  • Meaningful variable names: Not applicable.
  • DRY principle followed: Not applicable.
  • Identify Defects: No defects identified. The change is straightforward and follows the established pattern for version-specific dependencies. The version constraint python_version > '3.11' (line 73) correctly targets Python 3.12+.
  • Project memory consideration: The change aligns with the project's Python version support (3.10-3.13) mentioned in .claude/CLAUDE.md.

Testing

  • ⚠️ Unit tests for new functions: Not applicable - dependency bump.
  • ⚠️ Integration tests for new endpoints: Not applicable.
  • ⚠️ Edge cases covered: Not applicable.
  • ⚠️ Test coverage > 80%: Not applicable - no code changes that would affect coverage.

Note: While automated tests aren't needed for this change, the CI pipeline should validate that the new Black version works correctly across all supported Python versions.

Documentation

  • CHANGELOG.md updated: CHANGELOG.md has not been updated. It currently only contains a placeholder for version 1.0.0. This dependency update should be documented.
    • File: /home/runner/work/mapper-base/mapper-base/CHANGELOG.md:8-12
    • Suggestion: Add an entry under a new version section documenting the Black version update.
  • Readme updated if needed: Not needed - dependency versions are not documented in README.
  • API docs updated: Not applicable.
  • Inline comments for complex logic: Not applicable.
  • Markdown files follow CommonMark: No markdown changes in this PR.

Security

  • No hardcoded credentials: None present.
  • Input validation implemented: Not applicable.
  • Proper error handling: Not applicable.
  • No sensitive data in logs: Not applicable.
  • No license files (.lic) or AQAAAD strings: None detected in the diff.

Summary

Overall Assessment: ✅ APPROVED with minor documentation recommendation

This is a clean dependency version bump that follows the project's established pattern for Python version-specific dependencies. The change aligns with recent commits showing similar dependency updates (bandit, build, pytest).

Issues Found:

  1. Minor: CHANGELOG.md not updated (line 8-12)

Recommendations:

  • Consider adding this change to CHANGELOG.md for better version tracking, though this may be batched with other dependency updates before a release.
  • Ensure CI passes with the new Black 26.1.0 version across all supported Python versions (3.10-3.13).

Automated code review analyzing defects and coding standards

@docktermj docktermj merged commit 75391ac into main Feb 10, 2026
14 checks passed
@docktermj docktermj deleted the dependabot/pip/black-26.1.0 branch February 10, 2026 13:45
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.

1 participant