When checking for consistency betwene the docstring arguments and the
arguments in the function signature, ignore underscore arguments (_,
__, ___, ...) in the arguments in the function signature
Fixed a bug that included dependencies from the d extra by default (#4108)
23.12.0
Highlights
It's almost 2024, which means it's time for a new edition of Black's stable style!
Together with this release, we'll put out an alpha release 24.1a1 showcasing the draft
2024 stable style, which we'll finalize in the January release. Please try it out and
share your feedback.
This release (23.12.0) will still produce the 2023 style. Most but not all of the
changes in --preview mode will be in the 2024 stable style.
Stable style
Fix bug where # fmt: off automatically dedents when used with the --line-ranges
option, even when it is not within the specified line range. (#4084)
Fix feature detection for parenthesized context managers (#4104)
Preview style
Prefer more equal signs before a break when splitting chained assignments (#4010)
Standalone form feed characters at the module level are no longer removed (#4021)
Additional cases of immediately nested tuples, lists, and dictionaries are now
indented less (#4012)
Allow empty lines at the beginning of all blocks, except immediately before a
docstring (#4060)
Fix crash in preview mode when using a short --line-length (#4086)
Keep suites consisting of only an ellipsis on their own lines if they are not
functions or class definitions (#4066) (#4103)
Configuration
--line-ranges now skips Black's internal stability check in --safe mode. This
avoids a crash on rare inputs that have many unformatted same-content lines. (#4034)
Fixed a bug that included dependencies from the d extra by default (#4108)
23.12.0
Highlights
It's almost 2024, which means it's time for a new edition of Black's stable style!
Together with this release, we'll put out an alpha release 24.1a1 showcasing the draft
2024 stable style, which we'll finalize in the January release. Please try it out and
share your feedback.
This release (23.12.0) will still produce the 2023 style. Most but not all of the
changes in --preview mode will be in the 2024 stable style.
Stable style
Fix bug where # fmt: off automatically dedents when used with the --line-ranges
option, even when it is not within the specified line range. (#4084)
Fix feature detection for parenthesized context managers (#4104)
Preview style
Prefer more equal signs before a break when splitting chained assignments (#4010)
Standalone form feed characters at the module level are no longer removed (#4021)
Additional cases of immediately nested tuples, lists, and dictionaries are now
indented less (#4012)
Allow empty lines at the beginning of all blocks, except immediately before a
docstring (#4060)
Fix crash in preview mode when using a short --line-length (#4086)
Keep suites consisting of only an ellipsis on their own lines if they are not
functions or class definitions (#4066) (#4103)
Configuration
--line-ranges now skips Black's internal stability check in --safe mode. This
avoids a crash on rare inputs that have many unformatted same-content lines. (#4034)
Fix a performance problem with HTML extraction where large HTML input could
trigger quadratic line counting behavior (#1392).
Improve and expand type annotations in the code base (#1394).
[3.5] -- 2023-10-06
Added
Add permalink_leading configuration option to the toc extension (#1339)
A new boolean option permalink_leading controls the position of the permanent
link anchors generated with permalink. Setting permalink_leading to True
will cause the links to be inserted at the start of the header, before any other
header content. The default behavior for permalink is to append permanent
links to the header, placing them after all other header content.
Changed
Add support for cPython version 3.12 (and PyPy 3.10) and drop support for
Python version 3.7 (#1357).
Optionally go to the GitHub project's settings and replace branch protection rules with the new rulesets. See the new GitHub configuration guide for more details.
New Features
New GitHub rulesets are provided with the recommended configuration to protect branches and tags.
The documentation is restructured into a more organized, easier-to-navigate user guide.
Documentation on how to configure the GitHub project and PyPI package is now provided.
Cookiecutter template
The pylint check too-many-return-statements is now disabled by default.
Generated protobuf files are now ignored by Git.
Bug Fixes
Cookiecutter template
Fix typo: Freqenz -> Frequenz
Fix mkdocs.yml to avoid specifying custom_templates for mkdocstrings as it is unused and is checked for existence in newer versions.
Optionally go to the GitHub project's settings and replace branch protection rules with the new rulesets. See the new GitHub configuration guide for more details.
New Features
New GitHub rulesets are provided with the recommended configuration to protect branches and tags.
The documentation is restructured into a more organized, easier-to-navigate user guide.
Documentation on how to configure the GitHub project and PyPI package is now provided.
Cookiecutter template
The pylint check too-many-return-statements is now disabled by default.
Generated protobuf files are now ignored by Git.
Bug Fixes
Cookiecutter template
Fix typo: Freqenz -> Frequenz
Fix mkdocs.yml to avoid specifying custom_templates for mkdocstrings as it is unused and is checked for existence in newer versions.
Fix paths that are not translated properly from the python package name (#198)
... (truncated)
Commits
c82454d Add section on configuring PyPI to the user guide (#205)
We’ve just uploaded mypy 1.8 to the Python Package Index (PyPI). Mypy is a static type checker for Python. This release includes new features, performance improvements and bug fixes. You can install it as follows:
python3 -m pip install -U mypy
You can read the full documentation for this release on Read the Docs.
Type-checking Improvements
Do not intersect types in isinstance checks if at least one is final (Christoph Tyralla, PR 16330)
Detect that @final class without __bool__ cannot have falsey instances (Ilya Priven, PR 16566)
Do not allow TypedDict classes with extra keywords (Nikita Sobolev, PR 16438)
Do not allow class-level keywords for NamedTuple (Nikita Sobolev, PR 16526)
Make imprecise constraints handling more robust (Ivan Levkivskyi, PR 16502)
Fix strict-optional in extending generic TypedDict (Ivan Levkivskyi, PR
Bumps the optional group with 12 updates:
0.3.2
0.3.8
23.9.1
23.12.1
5.12.0
5.13.2
3.4.4
3.5.1
1.0.4
1.0.5
9.3.1
9.5.3
0.23.0
0.24.0
0.7.0
0.8.0
1.5.1
1.8.0
3.4.2.10
3.5.0.3
7.4.2
7.4.4
0.7.0
0.8.0
Updates
pydoclint
from 0.3.2 to 0.3.8Release notes
Sourced from pydoclint's releases.
Changelog
Sourced from pydoclint's changelog.
... (truncated)
Commits
b5612ff
Improve documentation71cdf37
Fix prepended escape char handling (#94)d2b1d21
Update version; update changelogf70caa4
Disable parallel mode in pre-commit (#93)def500f
Update pre-commit dependencies04bd231
Improve documentationef6dc07
Update dependency to fix return section parsing (#90)38ae4c6
Bump version to 0.3.507611e6
Ignore underscore args when checking args (#89)dd59b87
Add changelog for v0.3.4Updates
black
from 23.9.1 to 23.12.1Release notes
Sourced from black's releases.
... (truncated)
Changelog
Sourced from black's changelog.
... (truncated)
Commits
ec91a2b
Prepare release 23.12.1 (#4124)8fec1c3
Adds paren to deps for hidden extra constraint (#4108)35ce37d
Add new changelog templated9ad09a
Prepare release 23.12.0 (#4105)ebd543c
Fix feature detection for parenthesized context managers (#4104)eb7661f
Fix another case where we format dummy implementation for non-functions/class...0c98999
Fix path in test message (#4102)9aea976
Only use dummy implementation logic for functions and classes (#4066)67b23d7
Bump actions/setup-python from 4 to 5 (#4101)ce28be2
Add dedicated preview feature for East Asian Width (#4097)Updates
isort
from 5.12.0 to 5.13.2Release notes
Sourced from isort's releases.
... (truncated)
Changelog
Sourced from isort's changelog.
Commits
c655831
Merge pull request #2214 from PyCQA/version/5.13.2b4335b4
Prepare version 5.13.2c36e43c
Merge pull request #2184 from bp72/issue/2154e38702f
Merge pull request #2213 from davidculley/confine-precommit-to-stagesee8d87f
Add fix for the error found by hypothesis5849ec2
Apply the bracket fix from issue 471 only for use_parentheses=Truedf0e119
confine pre-commit to stages9255bca
Merge pull request #2212 from PyCQA/bugfix/#2211-colors-extra5336d7d
Fix colors extras643d9c4
Merge pull request #2210 from PyCQA/version/5.13.1Updates
markdown
from 3.4.4 to 3.5.1Release notes
Sourced from markdown's releases.
Changelog
Sourced from markdown's changelog.
Commits
f50ac47
Refactor changelog6662053
TOC extension: Add new boolean option permalink_prepend (#1339)Updates
mkdocs-macros-plugin
from 1.0.4 to 1.0.5Changelog
Sourced from mkdocs-macros-plugin's changelog.
Commits
4bfda0b
Fix issue with changelog no longer displayed (#186)82c5cdd
Merge pull request #183 from marcospereira/add-short-tag298f07f
Add a short_tag attribute to git context428a015
Remove include-markdown in webdoc, since it crashed readthedocs2161dd4
Update .readthedocs.ymlc64a08d
Merge pull request #182 from SimonMarquis/patch-11c1d2c4
Fix typo inRich Markdown Pages
docs9dba19e
Merge branch 'master' of github.com:fralau/mkdocs_macros_plugin into master7da7089
Add experimental logo0d36dde
Add experimental logoUpdates
mkdocs-material
from 9.3.1 to 9.5.3Release notes
Sourced from mkdocs-material's releases.
... (truncated)
Changelog
Sourced from mkdocs-material's changelog.
... (truncated)
Commits
ae1c63d
Updated Insiders changelog284264a
Prepare 9.5.3 release6b690e9
Documentation (#6549)175df61
Updated distribution files6a2b62b
Removed unnecessary quotes from type annotation (#6540)9956bf1
Replaced mutable argument default byNone
(#6541)0559666
Updated dependencies13aa156
Formatting (#6533)55fe1cc
Improved Group plugin initialization for mike (#6534)6e0b497
Documentation (#6519)Updates
mkdocstrings[python]
from 0.23.0 to 0.24.0Release notes
Sourced from mkdocstrings[python]'s releases.
Changelog
Sourced from mkdocstrings[python]'s changelog.
Commits
032e417
chore: Prepare release 0.24.0ce84dd5
feat: Cache downloaded inventories as local file4a97755
docs: Make recipe work with MkDocs-f
optionb3edf89
ci: Some typing fixes/ignored74fada
tests: Stop passing config file path to MkDocsConfig4dbb6d6
ci: Ruff auto-fix39694ac
chore: Template upgradeafc4ea4
fix:custom_templates
config was dropped in previous commit (#630)b61d4d1
refactor: Drop support for MkDocs < 1.4, modernize usages370a61d
fix: Makecustom_templates
relative to the config fileUpdates
frequenz-repo-config[api]
from 0.7.0 to 0.8.0Release notes
Sourced from frequenz-repo-config[api]'s releases.
... (truncated)
Changelog
Sourced from frequenz-repo-config[api]'s changelog.
... (truncated)
Commits
c82454d
Add section on configuring PyPI to the user guide (#205)56e4ed3
Update release notesdbc6601
Add section about configuring PyPi to the user guidea2ff3d2
Rename markdown file to match the page title560463d
Make page title consistent with the others711ac38
Prepare for v0.8.0 release (#204)e602cac
Prepare for v0.8.0 releaseaedc357
docs: Improvegh-pages
initialization (#203)b638e66
Ignore files generated fromproto
files (#202)6f34b76
Properly translate paths from the python package name (#199)Updates
mypy
from 1.5.1 to 1.8.0Changelog
Sourced from mypy's changelog.