chore(deps): update dependency pytest-cov to v7#516
chore(deps): update dependency pytest-cov to v7#516renovate[bot] wants to merge 3 commits intomainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #516 +/- ##
=======================================
Coverage 91.09% 91.09%
=======================================
Files 111 111
Lines 4201 4201
Branches 552 552
=======================================
Hits 3827 3827
Misses 231 231
Partials 143 143 🚀 New features to boost your workflow:
|
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request updates pytest-cov from v6 to v7. This is a major version update that includes a critical breaking change regarding subprocess coverage measurement. I've added a comment detailing a potential necessary configuration change in pyproject.toml to ensure that coverage of subprocesses, if any, continues to be measured. Without this change, there's a risk of a silent drop in code coverage.
| black = "^25.0.0" | ||
| ipykernel = "^6.9.1" | ||
| pytest-cov = "^6.0.0" | ||
| pytest-cov = "^7.0.0" |
There was a problem hiding this comment.
The update of pytest-cov to version 7.0.0 introduces a significant breaking change: support for automatic subprocess coverage measurement has been dropped.
Previously, pytest-cov would automatically measure coverage in subprocesses. This is no longer the case. If your test suite spawns subprocesses and you rely on their coverage being measured, you must now explicitly enable it in your coverage configuration.
As per the pytest-cov v7.0.0 release notes, you should add the following configuration to your pyproject.toml to restore this functionality:
[tool.coverage.run]
patch = ["subprocess"]Without this change, you may see a silent drop in your code coverage metrics if your tests involve subprocesses. This is a critical change to be aware of when upgrading.
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
This PR contains the following updates:
^6.0.0->^7.0.0Release Notes
pytest-dev/pytest-cov (pytest-cov)
v7.0.0Compare Source
Dropped support for subprocesses measurement.
It was a feature added long time ago when coverage lacked a nice way to measure subprocesses created in tests.
It relied on a
.pthfile, there was no way to opt-out and it created bad interationswith
coverage's new patch system <https://coverage.readthedocs.io/en/latest/config.html#run-patch>_ addedin
7.10 <https://coverage.readthedocs.io/en/7.10.6/changes.html#version-7-10-0-2025-07-24>_.To migrate to this release you might need to enable the suprocess patch, example for
.coveragerc:.. code-block:: ini
[run]
patch = subprocess
This release also requires at least coverage 7.10.6.
Switched packaging to have metadata completely in
pyproject.tomland usehatchling <https://pypi.org/project/hatchling/>_ forbuilding.
Contributed by Ofek Lev in
#​551 <https://github.com/pytest-dev/pytest-cov/pull/551>_with some extras in
#​716 <https://github.com/pytest-dev/pytest-cov/pull/716>_.Removed some not really necessary testing deps like
six.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.