Skip to content

chore(deps): update dependency pytest-cov to v7#516

Open
renovate[bot] wants to merge 3 commits intomainfrom
renovate/pytest-cov-7.x
Open

chore(deps): update dependency pytest-cov to v7#516
renovate[bot] wants to merge 3 commits intomainfrom
renovate/pytest-cov-7.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Oct 10, 2025

This PR contains the following updates:

Package Change Age Confidence
pytest-cov (changelog) ^6.0.0 -> ^7.0.0 age confidence

Release Notes

pytest-dev/pytest-cov (pytest-cov)

v7.0.0

Compare 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 .pth file, there was no way to opt-out and it created bad interations
    with coverage's new patch system <https://coverage.readthedocs.io/en/latest/config.html#run-patch>_ added
    in 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.toml and use hatchling <https://pypi.org/project/hatchling/>_ for
    building.
    Contributed by Ofek Lev in #&#8203;551 <https://github.com/pytest-dev/pytest-cov/pull/551>_
    with some extras in #&#8203;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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the auto-merge Bulldozer auto-merge label Oct 10, 2025
@renovate renovate bot requested a review from a team as a code owner October 10, 2025 11:15
@renovate renovate bot added dependencies auto-merge Bulldozer auto-merge labels Oct 10, 2025
@codecov
Copy link

codecov bot commented Oct 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.09%. Comparing base (8dfdf1f) to head (83617b8).

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:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link

github-actions bot commented Oct 10, 2025

Unit Test Results

    18 files  ±0      18 suites  ±0   33m 43s ⏱️ - 1m 3s
 1 212 tests ±0   1 212 ✅ ±0  0 💤 ±0  0 ❌ ±0 
15 840 runs  ±0  15 831 ✅ ±0  9 💤 ±0  0 ❌ ±0 

Results for commit 83617b8. ± Comparison against base commit 8dfdf1f.

♻️ This comment has been updated with latest results.

@neringaalt
Copy link
Contributor

/gemini review

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

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.

@renovate
Copy link
Contributor Author

renovate bot commented Nov 7, 2025

Edited/Blocked Notification

Renovate 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.

⚠️ Warning: custom changes will be lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge Bulldozer auto-merge dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant