Skip to content

Commit 73aa647

Browse files
committed
py-black: update to 26.1.0.
## 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 directories. ### Output - Explicitly shutdown the multiprocessing manager when run in diff mode too (#4952) ### Integrations - Upgraded PyPI upload workflow to use Trusted Publishing (#4611)
1 parent 6d6825e commit 73aa647

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

textproc/py-black/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# $NetBSD: Makefile,v 1.38 2025/12/08 07:12:51 adam Exp $
1+
# $NetBSD: Makefile,v 1.39 2026/01/25 23:09:55 wiz Exp $
22

3-
DISTNAME= black-25.12.0
3+
DISTNAME= black-26.1.0
44
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
55
CATEGORIES= textproc devel python
66
MASTER_SITES= ${MASTER_SITE_PYPI:=b/black/}

textproc/py-black/distinfo

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
$NetBSD: distinfo,v 1.33 2025/12/08 07:12:51 adam Exp $
1+
$NetBSD: distinfo,v 1.34 2026/01/25 23:09:55 wiz Exp $
22

3-
BLAKE2s (black-25.12.0.tar.gz) = 3e6b598a6b7605b8e1aa58f0d657a88660b3e3467b25da08abd22f09b0cb01dd
4-
SHA512 (black-25.12.0.tar.gz) = 2e67d22218eaba3e5c4f3bbcfe5ea3d305852168cfe7f75edb31ecd4db7b4a3dc349e23f8b93c0e5c5e9c4380cb3cd949733d13b9991b41496a7d17514cd2cea
5-
Size (black-25.12.0.tar.gz) = 659264 bytes
3+
BLAKE2s (black-26.1.0.tar.gz) = 1dc3d9b06d297d42dba2ac156948813d2a92502200b48fb682a128c1565d5474
4+
SHA512 (black-26.1.0.tar.gz) = db5b0d6e5caf7bcd1e7186c0b6efb076cd94e9194dd63bbc74ab1ca3cc826aa6265bcf0ffbcabb8bfd8ac1f3f15580ce66c295d942c5202acdf269e9898156b0
5+
Size (black-26.1.0.tar.gz) = 658785 bytes

0 commit comments

Comments
 (0)