This release is not a usual bug fix release -- it contains features and improvements, being a follow up
to 8.1.0, which has been yanked from PyPI.
:::
Features
#11475: Added the new consider_namespace_packages{.interpreted-text role="confval"} configuration option, defaulting to False.
If set to True, pytest will attempt to identify modules that are part of namespace packages when importing modules.
#11653: Added the new verbosity_test_cases{.interpreted-text role="confval"} configuration option for fine-grained control of test execution verbosity.
See Fine-grained verbosity <pytest.fine_grained_verbosity>{.interpreted-text role="ref"} for more details.
Improvements
#10865: pytest.warns{.interpreted-text role="func"} now validates that warnings.warn{.interpreted-text role="func"} was called with a [str]{.title-ref} or a [Warning]{.title-ref}.
Currently in Python it is possible to use other types, however this causes an exception when warnings.filterwarnings{.interpreted-text role="func"} is used to filter those warnings (see [CPython #103577](python/cpython#103577) for a discussion).
While this can be considered a bug in CPython, we decided to put guards in pytest as the error message produced without this check in place is confusing.
#11311: When using --override-ini for paths in invocations without a configuration file defined, the current working directory is used
as the relative directory.
Previoulsy this would raise an AssertionError{.interpreted-text role="class"}.
#11475: --import-mode=importlib <import-mode-importlib>{.interpreted-text role="ref"} now tries to import modules using the standard import mechanism (but still without changing :pysys.path{.interpreted-text role="data"}), falling back to importing modules directly only if that fails.
This means that installed packages will be imported under their canonical name if possible first, for example app.core.models, instead of having the module name always be derived from their path (for example .env310.lib.site_packages.app.core.models).
#11801: Added the iter_parents() <_pytest.nodes.Node.iter_parents>{.interpreted-text role="func"} helper method on nodes.
It is similar to listchain <_pytest.nodes.Node.listchain>{.interpreted-text role="func"}, but goes from bottom to top, and returns an iterator, not a list.
#11850: Added support for sys.last_exc{.interpreted-text role="data"} for post-mortem debugging on Python>=3.12.
#11962: In case no other suitable candidates for configuration file are found, a pyproject.toml (even without a [tool.pytest.ini_options] table) will be considered as the configuration file and define the rootdir.
#11978: Add --log-file-mode option to the logging plugin, enabling appending to log-files. This option accepts either "w" or "a" and defaults to "w".
Previously, the mode was hard-coded to be "w" which truncates the file before logging.
This release is a milestone: it fixes Black's first CVE security vulnerability. If you
run Black on untrusted input, or if you habitually put thousands of leading tab
characters in your docstrings, you are strongly encouraged to upgrade immediately to fix
CVE-2024-21503.
This release also fixes a bug in Black's AST safety check that allowed Black to make
incorrect changes to certain f-strings that are valid in Python 3.12 and higher.
Stable style
Don't move comments along with delimiters, which could cause crashes (#4248)
Strengthen AST safety check to catch more unsafe changes to strings. Previous versions
of Black would incorrectly format the contents of certain unusual f-strings containing
nested strings with the same quote type. Now, Black will crash on such strings until
support for the new f-string syntax is implemented. (#4270)
Fix a bug where line-ranges exceeding the last code line would not work as expected
(#4273)
Performance
Fix catastrophic performance on docstrings that contain large numbers of leading tab
characters. This fixes
CVE-2024-21503.
(#4278)
Documentation
Note what happens when --check is used with --quiet (#4236)
This release is a milestone: it fixes Black's first CVE security vulnerability. If you
run Black on untrusted input, or if you habitually put thousands of leading tab
characters in your docstrings, you are strongly encouraged to upgrade immediately to fix
CVE-2024-21503.
This release also fixes a bug in Black's AST safety check that allowed Black to make
incorrect changes to certain f-strings that are valid in Python 3.12 and higher.
Stable style
Don't move comments along with delimiters, which could cause crashes (#4248)
Strengthen AST safety check to catch more unsafe changes to strings. Previous versions
of Black would incorrectly format the contents of certain unusual f-strings containing
nested strings with the same quote type. Now, Black will crash on such strings until
support for the new f-string syntax is implemented. (#4270)
Fix a bug where line-ranges exceeding the last code line would not work as expected
(#4273)
Performance
Fix catastrophic performance on docstrings that contain large numbers of leading tab
characters. This fixes
CVE-2024-21503.
(#4278)
Documentation
Note what happens when --check is used with --quiet (#4236)
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 merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the pip group with 10 updates:
0.27.1
0.29.0
1.16.0
1.16.1
1.17.0
1.18.0
1.34.54
1.34.66
9.5.12
9.5.14
8.0.2
8.1.1
6.98.17
6.99.9
1.1.352
1.1.355
24.2.0
24.3.0
0.3.0
0.3.3
Updates
uvicorn
from 0.27.1 to 0.29.0Release notes
Sourced from uvicorn's releases.
Changelog
Sourced from uvicorn's changelog.
Commits
fe85206
Version 0.29.0 (#2279)9e32e8e
Cooperative signal handling (#1600)f73b8be
Version 0.28.1 (#2277)76a3812
Revert raiseClientDisconnected
on HTTP (#2276) (#2276)a05ae64
Version 0.28.0 (#2269)4a503d8
Change ruff rules (#2251)0d4747e
UseX-Forwarded-Proto
for WebSockets scheme when the proxy provides it (#2258)93897b5
ExceptAttributeError
onsys.stdin.fileno()
for Windows IIS10 (#1947)ed2d655
Bump cryptography from 42.0.2 to 42.0.4 (#2253)1e5f1be
RaiseClientDisconnected
onsend()
when client disconnected (#2220)Updates
rq
from 1.16.0 to 1.16.1Release notes
Sourced from rq's releases.
Changelog
Sourced from rq's changelog.
... (truncated)
Commits
1f8e031
Bump version to 1.16.12de9491
Added worker_pool.get_worker_process()Updates
google-cloud-compute
from 1.17.0 to 1.18.0Release notes
Sourced from google-cloud-compute's releases.
Commits
c57e4a2
chore: release main (#12395)c69966f
fix(deps): Exclude google-auth 2.24.0 and 2.25.0 (#12384)d2cd4ff
fix(deps): Exclude google-auth 2.24.0 and 2.25.0 (#12388)7cd0f05
feat: add initial files for google.cloud.cloudcontrolspartner.v1 (#12402)305f43f
fix(deps): Exclude google-auth 2.24.0 and 2.25.0 (#12383)5535d1e
docs: [google-cloud-run]clarify some defaults and required or optional values...d5db265
fix(deps): Exclude google-auth 2.24.0 and 2.25.0 (#12382)12ce658
fix(deps): Exclude google-auth 2.24.0 and 2.25.0 (#12387)25c291a
fix(deps): Exclude google-auth 2.24.0 and 2.25.0 (#12390)48ae8ab
fix(deps): Exclude google-auth 2.24.0 and 2.25.0 (#12381)Updates
boto3-stubs
from 1.34.54 to 1.34.66Commits
Updates
mkdocs-material
from 9.5.12 to 9.5.14Release notes
Sourced from mkdocs-material's releases.
Changelog
Sourced from mkdocs-material's changelog.
... (truncated)
Commits
cc78979
Updated Insiders changelogc51eb2f
Prepare 9.5.14 release3311a61
Updated dependencies022f14c
Fixed UTF-8 with BOM encoding support2f1b2e9
Added support for hiding versions from selectorbabc995
Formatting7e27f4d
Merge branch 'master' of github.com:squidfunk/mkdocs-materialdc97a56
Updated dependencies2d39824
Fixed info plugin's exclusion logic (#6874)f325238
Fixed inability to reset search pipelineUpdates
pytest
from 8.0.2 to 8.1.1Release notes
Sourced from pytest's releases.
... (truncated)
Commits
81653ee
Adjust changelog manually for 8.1.1e60b4b9
Prepare release version 8.1.115fbe57
[8.1.x] Revert legacy path removals (#12093)86c3aab
[8.1.x] Do not import duplicated modules with --importmode=importlib (#12077)5b82b0c
[8.1.x] Yank version 8.1.0 (#12076)0a53681
Merge pull request #12054 from pytest-dev/release-8.1.0b9a167f
Prepare release version 8.1.000043f7
Merge pull request #12038 from bluetech/fixtures-rm-arg2indexf4e1025
Merge pull request #12048 from bluetech/fixture-teardown-excgroup43492f5
Merge pull request #12051 from jakkdl/test_debugging_pythonbreakpointUpdates
hypothesis
from 6.98.17 to 6.99.9Commits
7ade69f
Bump hypothesis-python version to 6.99.9 and update changelog501d2ba
Merge pull request #3929 from tybug/shrinker-ir-descendant01c18a9
add release notes0b8400e
cover min/max value trivial case233ca9a
add test for forced in redistribute_block_pairsd91596c
avoid next_node being forcedc7f91f0
improve node.trivial check and strengthen testsa38bae9
migrate redistribute_block_pairs to the ir8888cfc
use node.index in minimize_floatsc007798
add node.indexUpdates
pyright
from 1.1.352 to 1.1.355Commits
27a9fea
Pyright NPM Package update to 1.1.355 (#256)3b04c54
[pyright updated to 1.1.354] Update Version (#255)ba2747b
Pyright NPM Package update to 1.1.353 (#253)Updates
black
from 24.2.0 to 24.3.0Release notes
Sourced from black's releases.
Changelog
Sourced from black's changelog.
Commits
552baf8
Prepare release 24.3.0 (#4279)f000936
Fix catastrophic performance in lines_with_leading_tabs_expanded() (#4278)7b5a657
Fix --line-ranges behavior when ranges are at EOF (#4273)1abcffc
Use regex where we ignore case on windows (#4252)719e674
Fix 4227: Improve documentation for --quiet --check (#4236)e5510af
update plugin url for Thonny (#4259)6af7d11
Fix AST safety check false negative (#4270)f03ee11
Ensureblib2to3.pygram
is initialized before use (#4224)e4bfedb
fix: Don't move comments while splitting delimiters (#4248)d0287e1
Make trailing comma logic more concise (#4202)Updates
ruff
from 0.3.0 to 0.3.3Release notes
Sourced from ruff's releases.
... (truncated)
Changelog
Sourced from ruff's changelog.
... (truncated)
Commits
608df9a
Bump version to 0.3.3 (#10425)740c08b
[pylint
] - implementredeclared-assigned-name
(W0128
) (#9268)7e652e8
[flake8_comprehensions
] Handled special case forC400
which also matches ...9675e18
Allow trailing ellipsis intyping.TYPE_CHECKING
(#10413)10ace88
Track conditional deletions in the semantic model (#10415)a8e50a7
[RUF008] Make it clearer that a mutable default in a dataclass is only valid ...e944c16
[pycodestyle
] Do not ignore lines before the first logical line in blank li...5f40371
UseExprFString
forStringLike::FString
variant (#10311)f7802ad
[pylint
] Extend docs and test ininvalid-str-return-type
(E307
) (#10400)e832327
Require --preview forruff server
(#10368)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 merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show