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)
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 16398)
Allow type ignores of PEP 695 constructs (Shantanu, PR 16608)
Enable type_check_only support for TypedDict and NamedTuple (Nikita Sobolev, PR 16469)
Performance Improvements
Add fast path to analyzing special form assignments (Jukka Lehtosalo, PR 16561)
Improvements to Error Reporting
Don't show documentation links for plugin error codes (Ivan Levkivskyi, PR 16383)
Improve error messages for super checks and add more tests (Nikita Sobolev, PR 16393)
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)
#11140: Fix non-string constants at the top of file being detected as docstrings on Python>=3.8.
#11572: Handle an edge case where sys.stderr{.interpreted-text role="data"} and sys.__stderr__{.interpreted-text role="data"} might already be closed when faulthandler{.interpreted-text role="ref"} is tearing down.
#11710: Fixed tracebacks from collection errors not getting pruned.
#7966: Removed unhelpful error message from assertion rewrite mechanism when exceptions are raised in __iter__ methods. Now they are treated un-iterable instead.
Improved Documentation
#11091: Updated documentation to refer to hyphenated options: replaced --junitxml with --junit-xml and --collectonly with --collect-only.
Fixes a bug that caused event loops to be closed prematurely when using async generator fixtures with class scope or wider in a function-scoped test #706
Fixes various bugs that caused an internal pytest error during test collection
For some reason this is stalling in the merge queue:
I don't see anything touching the CI yaml file here, which I guess is the only thing that could make it stall without any other information, so I will force-merge and see what happens next, hopefully is just a GitHub glitch.
Bumps the optional group with 10 updates:
23.11.0
23.12.1
5.12.0
5.13.2
0.7.5
0.8.0
9.4.14
9.5.3
1.7.1
1.8.0
3.0.2
3.0.3
0.7.5
0.8.0
6.91.0
6.92.2
7.4.3
7.4.4
0.23.2
0.23.3
Updates
black
from 23.11.0 to 23.12.1Release notes
Sourced from black's releases.
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
frequenz-repo-config[lib]
from 0.7.5 to 0.8.0Release notes
Sourced from frequenz-repo-config[lib]'s releases.
... (truncated)
Changelog
Sourced from frequenz-repo-config[lib]'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
mkdocs-material
from 9.4.14 to 9.5.3Release notes
Sourced from mkdocs-material's releases.
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
mypy
from 1.7.1 to 1.8.0Changelog
Sourced from mypy's changelog.
... (truncated)
Commits
3b46750
remove +dev suffix from versionc9bc833
Fix tests broken by hatchling (#16655)60d30e3
Fix crash with type alias toCallable[[Unpack[Tuple[Any, ...]]], Any]
(#16541)f53f422
Allow type ignores of PEP 695 constructs (#16608)7c33e7c
@final
class without bool cannot have falsey instances (#16566)c224da5
Do not intersect types in isinstance checks if at least one is final (#16330)d54cc35
Change example in test cases with no stubs available (#16513)eb1ee97
Update hashes insync-typeshed.py
following recent typeshed sync (#16600)344298e
Revert use ofParamSpec
forfunctools.wraps
3e5d813
Revert typeshed ctypes changeUpdates
pylint
from 3.0.2 to 3.0.3Commits
1a5ffc1
Bump pylint to 3.0.3, update changelog54687e7
Disallow isort 5.13.0 (#9290) (#9292)fea5483
[wrong-exception-operation] Fix FP for tuple concatenation of exception types...d0d5c91
[pointless-string-statement] Ignore docstrings on py3.12 type aliases (#9269)...81f0f2e
[Backport maintenance/3.0.x] [bugfix] Find files with ./ as input with a __in...7f01d83
Fix doc generation in implicit-str-concata60ddd1
Fix incorrect suggestion for unnecessary-comprehension (#9172) (#9242)dc11223
[todos] Fix the todos version and the warnings' text (#9202) (#9204)0273db7
Fix false positive forunnecessary-lambda
. (#9149) (#9200)53d4541
Fixundefined-variable
etc for Python 3.12 generic type syntax (#9195) (#9199)Updates
frequenz-repo-config[extra-lint-examples]
from 0.7.5 to 0.8.0Release notes
Sourced from frequenz-repo-config[extra-lint-examples]'s releases.
... (truncated)
Changelog
Sourced from frequenz-repo-config[extra-lint-examples]'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
hypothesis
from 6.91.0 to 6.92.2Commits
6da7c6f
Bump hypothesis-python version to 6.92.2 and update changelog42ad4c4
Merge pull request #3814 from HypothesisWorks/create-pull-request/patch0c6a357
docs and lint tweaks3547340
Update pinned dependencies6a6c1cf
Bump hypothesis-python version to 6.92.1 and update changelog867e56a
Merge pull request #3813 from tybug/json-defaultdict3ee5f1a
nocover 3.12 branch0739659
more explicit definition to make ruff happycc2db94
simlify dict_factory casee9ba14c
move version guard to compat.pyUpdates
pytest
from 7.4.3 to 7.4.4Release notes
Sourced from pytest's releases.
Commits
33f694f
Prepare release version 7.4.476c107c
Merge pull request #11751 from bluetech/backport-11143-to-7.4.x531d76d
[7.4.x] Improve reporting from iter exceptions (#11749)a0f58fa
Merge pull request #11143 from tushar-deepsource/patch-1b1f3387
[7.4.x] #11091: documentation should use hypthonated properties (#11750)2cdd619
Merge pull request #11747 from pytest-dev/backport-11711-to-7.4.xd06c05b
[7.4.x] nodes: fix tracebacks from collection errors are not getting pruned5582bfc
[7.4.x] Improves clarity in Sphinx documentation for function signature. (#11...13024ef
[7.4.x] Fix for operation on closed file in faulthandler teardown (#11631)a40dacf
[7.4.x] XFAIL TestLocalPath.test_make_numbered_dir_multiprocess_safe (#11616)Updates
pytest-asyncio
from 0.23.2 to 0.23.3Release notes
Sourced from pytest-asyncio's releases.