Bump the minor group across 1 directory with 4 updates
Type: Pull Request
State: Open
Association: Contributor
Comments: 0
(10 months ago)
(10 months ago)
part:tests part:tooling type:tech-debt
Bumps the minor group with 4 updates in the / directory: flake8, mypy, pytest and hypothesis.
Updates flake8 from 7.2.0 to 7.3.0
Commits
c48217eRelease 7.3.0f9e0f33Merge pull request #1986 from PyCQA/document-f5426bcdb62document F54270a15b8Merge pull request #1985 from PyCQA/upgrade-deps4941a3eupgrade pyflakes / pycodestyle23e4005Merge pull request #1983 from PyCQA/py314019424badd support for t-strings6b6f3d5Merge pull request #1980 from PyCQA/asottile-patch-18dfa669add rtd sphinx configce34111Merge pull request #1976 from PyCQA/document-f824- Additional commits viewable in compare view
Updates mypy from 1.16.1 to 1.17.0
Changelog
Sourced from mypy's changelog.
Mypy Release Notes
Next Release
Mypy 1.17
We’ve just uploaded mypy 1.17 to the Python Package Index (PyPI). Mypy is a static type checker for Python. This release includes new features and bug fixes. You can install it as follows:
python3 -m pip install -U mypyYou can read the full documentation for this release on Read the Docs.
Optionally Check That Match Is Exhaustive
Mypy can now optionally generate an error if a match statement does not match exhaustively, without having to use
assert_never(...). Enable this by using--enable-error-code exhaustive-match.Example:
# mypy: enable-error-code=exhaustive-matchimport enum
class Color(enum.Enum): RED = 1 BLUE = 2
def show_color(val: Color) -> None: # error: Unhandled case for values of type "Literal[Color.BLUE]" match val: case Color.RED: print("red")
This feature was contributed by Donal Burns (PR 19144).
Further Improvements to Attribute Resolution
This release includes additional improvements to how attribute types and kinds are resolved. These fix many bugs and overall improve consistency.
- Handle corner case: protocol/class variable/descriptor (Ivan Levkivskyi, PR 19277)
- Fix a few inconsistencies in protocol/type object interactions (Ivan Levkivskyi, PR 19267)
- Refactor/unify access to static attributes (Ivan Levkivskyi, PR 19254)
- Remove inconsistencies in operator handling (Ivan Levkivskyi, PR 19250)
- Make protocol subtyping more consistent (Ivan Levkivskyi, PR 18943)
... (truncated)
Commits
0260991Update version string3901aa2Updates to 1.17 changelog (#19436)7d13396Initial changelog for 1.17 release (#19427)a182decCombine the revealed types of multiple iteration steps in a more robust manne...ab4fd57Improve the handling of "iteration dependent" errors and notes in finally cla...09ba1f6[mypyc] Fix exception swallowing in async try/finally blocks with await (#19353)5c65e33[mypyc] Fix AttributeError in async try/finally with mixed return paths (#19361)934ec50Lessen dmypy suggest path limitations for Windows machines (#19337)a4801f9Type ignore comments erroneously marked as unused by dmypy (#15043)c3bfa0dHandle corner case: protocol vs classvar vs descriptor (#19277)- Additional commits viewable in compare view
Updates pytest from 8.3.5 to 8.4.1
Release notes
Sourced from pytest's releases.
8.4.1
pytest 8.4.1 (2025-06-17)
Bug fixes
#13461: Corrected
_pytest.terminal.TerminalReporter.isattyto support being called as a method. Before it was just a boolean which could break correct code when using-o log_cli=true).#13477: Reintroduced
pytest.PytestReturnNotNoneWarning{.interpreted-text role="class"} which was removed by accident in pytest [8.4]{.title-ref}.This warning is raised when a test functions returns a value other than
None, which is often a mistake made by beginners.See
return-not-none{.interpreted-text role="ref"} for more information.#13497: Fixed compatibility with
Twisted 25+.Improved documentation
- #13492: Fixed outdated warning about
faulthandlernot working on Windows.8.4.0
pytest 8.4.0 (2025-06-02)
Removals and backward incompatible breaking changes
#11372: Async tests will now fail, instead of warning+skipping, if you don't have any suitable plugin installed.
#12346: Tests will now fail, instead of raising a warning, if they return any value other than None.
#12874: We dropped support for Python 3.8 following its end of life (2024-10-07).
#12960: Test functions containing a yield now cause an explicit error. They have not been run since pytest 4.0, and were previously marked as an expected failure and deprecation warning.
See
the docs <yield tests deprecated>{.interpreted-text role="ref"} for more information.Deprecations (removal in next major release)
- #10839: Requesting an asynchronous fixture without a [pytest_fixture_setup]{.title-ref} hook that resolves it will now give a DeprecationWarning. This most commonly happens if a sync test requests an async fixture. This should have no effect on a majority of users with async tests or fixtures using async pytest plugins, but may affect non-standard hook setups or
autouse=True. For guidance on how to work around this warning seesync-test-async-fixture{.interpreted-text role="ref"}.New features
#11538: Added
pytest.RaisesGroup{.interpreted-text role="class"} as an equivalent topytest.raises{.interpreted-text role="func"} for expectingExceptionGroup{.interpreted-text role="exc"}. Also addspytest.RaisesExc{.interpreted-text role="class"} which is now the logic behindpytest.raises{.interpreted-text role="func"} and used as parameter topytest.RaisesGroup{.interpreted-text role="class"}.RaisesGroupincludes the ability to specify multiple different expected exceptions, the structure of nested exception groups, and flags for emulatingexcept* <except_star>{.interpreted-text role="ref"}. Seeassert-matching-exception-groups{.interpreted-text role="ref"} and docstrings for more information.#12081: Added
capteesys{.interpreted-text role="fixture"} to capture AND pass output to next handler set by--capture=.#12504:
pytest.mark.xfail{.interpreted-text role="func"} now acceptspytest.RaisesGroup{.interpreted-text role="class"} for theraisesparameter when you expect an exception group. You can also pass apytest.RaisesExc{.interpreted-text role="class"} if you e.g. want to make use of thecheckparameter.#12713: New [--force-short-summary]{.title-ref} option to force condensed summary output regardless of verbosity level.
... (truncated)
Commits
8d99211Prepare release version 8.4.15dc5880docs: update pytest.ini addopts example to use separate -p entries (#13529) (...d0c7ed0Reintroduce PytestReturnNotNoneWarning (#13495) (#13527)a1b3a78Fix compatibility with Twisted 25 (#13502) (#13531)4c161abpytester: avoid unraisableexception gc collects in inline runs to speed up te...a86ee09Fix typo in parametrize.rst (#13514) (#13516)1a0581bRemove outdated warning about faulthandler_timeout on Windows (#13492) (#13493)4e631a7Merge pull request #13486 from hosmir/fixtypo (#13487)b49745efix: support TerminalReporter.isatty being called (#13462) (#13483)cc5ceedRELEASING: remove pytest mailing list (#13472) (#13473)- Additional commits viewable in compare view
Updates hypothesis from 6.132.0 to 6.136.3
Release notes
Sourced from hypothesis's releases.
Hypothesis for Python - version 6.136.3
When a test is executed concurrently from multiple threads, "DeadlineExceeded" is now disabled, since the Python runtime may decide to switch away from a thread for longer than "settings.deadline", and Hypothesis cannot track execution time per- thread. See issue #4478.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.136.2
"
@precondition" now errors if used without "@rule" or "@invariant". Doing so has no effect and is indicative of a user error (issue #4413).The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.136.1
Fix "on_observation()" being called with observations it wasn't responsible for generating if the test failed.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.136.0
When a failure found by an alternative backend does not reproduce under the Hypothesis backend, we now raise "FlakyBackendFailure" instead of an internal "FlakyReplay" exception.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.135.33
Speculative fix for a thread-safety issue in calculating strategy labels.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.135.32
Improve the thread-safety of strategy validation.
Before this release, Hypothesis did not require that "super().init()" be called in "SearchStrategy" subclasses. Subclassing "SearchStrategy" is not supported or part of the public API, but if you are subclassing it anyway, you will need to make sure to call "super().init()" after this release.
The canonical version of these notes (with links) is on readthedocs.
Hypothesis for Python - version 6.135.31
Fix a remaining thread-safety issue with the deprecation warning for use of the global random instance (see v6.135.24).
... (truncated)
Commits
c93b505Bump hypothesis-python version to 6.136.3 and update changelog4732ecbMerge pull request #4480 from tybug/free-threading-deadlinedf6f0a5skip threading test under emscriptenb3274d1add covering test and timeout75a1a93cap a slow test4d9fd69disable DeadlineExceeded on multithreadingc84572eBump hypothesis-python version to 6.136.2 and update changelog852fe83Merge pull request #4479 from tybug/stateful-error371b7fdadd covering test48e9972address review, use better qualname- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill 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 <dependency name> minor versionwill 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 <dependency name>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 <dependency name>will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>will remove the ignore condition of the specified dependency and ignore conditions
Pull Request Statistics
0
0
+0
-0
Package Dependencies
Technical Details
| ID: | 4184451 |
| UUID: | 2691779042 |
| Node ID: | PR_kwDOK5LZq86gcUni |
| Host: | GitHub |
| Repository: | frequenz-floss/frequenz-client-base-python |