← Back to issue list

build(deps): update dependency pytest-cov to v7

View original Github issue

Metadata

Project
craft-cli
Number
#393
Type
pull request
State
merged
Author
renovate[bot]
Labels
PR: Dependencies
Created
Updated
Closed

Current evaluation

Renovate PR merged pytest-cov 5.0.0 -> 7.0.0 in the dev dependency group (commit 31c0db2), approved by 2 reviewers with all CI checks green; later bumped again to 7.1.0 by #436.

Resolution: closed resolved

Reason: The dependency bump was merged into main as commit 31c0db2 ("build(deps): update dependency pytest-cov to v7 (#393)"), changing pytest-cov==5.0.0 to ==7.0.0 in the dev dependency group of pyproject.toml. All CI jobs (fast/slow tests, lint, security scans, policy) passed.

Evaluated by: mr-cal-bot

No scores available.

Issue body

This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [pytest-cov](https://redirect.github.com/pytest-dev/pytest-cov) ([changelog](https://pytest-cov.readthedocs.io/en/latest/changelog.html)) | `==5.0.0` -> `==7.0.0` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/pytest-cov/7.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/pytest-cov/5.0.0/7.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>pytest-dev/pytest-cov (pytest-cov)</summary> ### [`v7.0.0`](https://redirect.github.com/pytest-dev/pytest-cov/blob/HEAD/CHANGELOG.rst#700-2025-09-09) [Compare Source](https://redirect.github.com/pytest-dev/pytest-cov/compare/v6.3.0...v7.0.0) - 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`. ### [`v6.3.0`](https://redirect.github.com/pytest-dev/pytest-cov/blob/HEAD/CHANGELOG.rst#630-2025-09-06) [Compare Source](https://redirect.github.com/pytest-dev/pytest-cov/compare/v6.2.1...v6.3.0) - Added support for markdown reports. Contributed by Marcos Boger in `#&#8203;712 <https://github.com/pytest-dev/pytest-cov/pull/712>`\_ and `#&#8203;714 <https://github.com/pytest-dev/pytest-cov/pull/714>`\_. - Fixed some formatting issues in docs. Anonymous contribution in `#&#8203;706 <https://github.com/pytest-dev/pytest-cov/pull/706>`\_. ### [`v6.2.1`](https://redirect.github.com/pytest-dev/pytest-cov/blob/HEAD/CHANGELOG.rst#621-2025-06-12) [Compare Source](https://redirect.github.com/pytest-dev/pytest-cov/compare/v6.2.0...v6.2.1) - Added a version requirement for pytest's pluggy dependency (1.2.0, released 2023-06-21) that has the required new-style hookwrapper API. - Removed deprecated license classifier (packaging). - Disabled coverage warnings in two more situations where they have no value: - "module-not-measured" in workers - "already-imported" in subprocesses ### [`v6.2.0`](https://redirect.github.com/pytest-dev/pytest-cov/blob/HEAD/CHANGELOG.rst#620-2025-06-11) [Compare Source](https://redirect.github.com/pytest-dev/pytest-cov/compare/v6.1.1...v6.2.0) - The plugin now adds 3 rules in the filter warnings configuration to prevent common coverage warnings being raised as obscure errors:: default:unclosed database in \<sqlite3.Connection object at:ResourceWarning once::PytestCovWarning once::CoverageWarning This fixes most of the bad interactions that are occurring on pytest 8.4 with `filterwarnings=error`. The plugin will check if there already matching rules for the 3 categories (`ResourceWarning`, `PytestCovWarning`, `CoverageWarning`) and message (`unclosed database in <sqlite3.Connection object at`) before adding the filters. This means you can have this in your pytest configuration for complete oblivion (not recommended, if that is not clear):: filterwarnings = \[ "error", "ignore:unclosed database in \<sqlite3.Connection object at:ResourceWarning", "ignore::PytestCovWarning", "ignore::CoverageWarning", ] ### [`v6.1.1`](https://redirect.github.com/pytest-dev/pytest-cov/blob/HEAD/CHANGELOG.rst#611-2025-04-05) [Compare Source](https://redirect.github.com/pytest-dev/pytest-cov/compare/v6.1.0...v6.1.1) - Fixed breakage that occurs when `--cov-context` and the `no_cover` marker are used together. ### [`v6.1.0`](https://redirect.github.com/pytest-dev/pytest-cov/blob/HEAD/CHANGELOG.rst#610-2025-04-01) [Compare Source](https://redirect.github.com/pytest-dev/pytest-cov/compare/v6.0.0...v6.1.0) - Change terminal output to use full width lines for the coverage header. Contributed by Tsvika Shapira in `#&#8203;678 <https://github.com/pytest-dev/pytest-cov/pull/678>`\_. - Removed unnecessary CovFailUnderWarning. Fixes `#&#8203;675 <https://github.com/pytest-dev/pytest-cov/issues/675>`\_. - Fixed the term report not using the precision specified via `--cov-precision`. ### [`v6.0.0`](https://redirect.github.com/pytest-dev/pytest-cov/blob/HEAD/CHANGELOG.rst#600-2024-10-29) [Compare Source](https://redirect.github.com/pytest-dev/pytest-cov/compare/v5.0.0...v6.0.0) - Updated various documentation inaccuracies, especially on subprocess handling. - Changed fail under checks to use the precision set in the coverage configuration. Now it will perform the check just like `coverage report` would. - Added a `--cov-precision` cli option that can override the value set in your coverage configuration. - Dropped support for now EOL Python 3.8. </details> --- ### Configuration 📅 **Schedule**: Branch creation - "every weekend" in timezone Etc/UTC, 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 this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/canonical/craft-cli). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNDMuMSIsInVwZGF0ZWRJblZlciI6IjQxLjE0My4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJQUjogRGVwZW5kZW5jaWVzIl19-->

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Renovate PR merged pytest-cov 5.0.0 -> 7.0.0 in the dev dependency group (commit 31c0db2), approved by 2 reviewers with all CI checks green; later bumped again to 7.1.0 by #436.
stealth/space-bunny-alpha — closed resolved Renovate PR #393 merged, bumping pytest-cov from 5.0.0 to 7.0.0 in pyproject.toml and uv.lock via commit 31c0db2; approved by 2 reviewers with all CI checks green.
stealth/space-bunny-alpha — closed resolved Renovate PR #393 merged pytest-cov 5.0.0 to 7.0.0 in commit 31c0db2, with two approvals and all CI checks passing.
stealth/space-bunny-alpha — closed resolved Merged Renovate update of pytest-cov from 5.0.0 to 7.0.0, approved by two reviewers with all CI checks passing.
qwen/qwen3.6-35b-a3b — — Merged automated dependency update upgrading pytest-cov from v5.0.0 to v7.0.0. The change passed all CI checks and reviewer approval before integration.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/craft-cli#436 (confidence 90%)

    Follow-up Renovate PR (commit 04773a2) bumping pytest-cov from 7.0.0 to 7.1.0, now the pinned version in pyproject.toml.

  • Superseded By: canonical/craft-cli#436 (confidence 85%)

    Later update supersedes this PR's pin; current pyproject.toml requires pytest-cov==7.1.0.

Related issues

Issue Project State Summary Similarity
#205 build(deps): update dependency pytest-cov to v7 (main) craft-archives merged Renovate PR #205 bumping pytest-cov from 4.1.0 to 7.0.0 was merged into main as commit 8b9823d; approved by 2 reviewers with all CI checks passing. Later raised to 7.1.0 in #232.
96%
#324 build(deps): update dependency pytest-cov to v7 (main) craft-store merged Merged PR #324 upgraded pytest-cov from 6.3.0 to 7.0.0 in commit 8e3e44a; all CI checks passed and two reviewers approved.
95%
#216 build(deps): update dependency pytest-cov to v7 imagecraft merged Renovate PR #216 was merged as commit a589bd8, updating pytest-cov from ~=6.0 to ~=7.0.
95%
#21 build(deps): update dependency pytest-cov to v7 debcraft merged Merged PR #21 as commit 88d1694, upgrading pytest-cov from ~=6.0 to ~=7.0 after two approvals and all CI checks passed.
94%
#351 build(deps): update dependency pytest-cov to v7.1.0 (main) craft-store merged Renovate dependency bump of pytest-cov 7.0.0 → 7.1.0 merged into main via commit 6ae2651 (#351); approved by 2 reviewers with CI green apart from unrelated OSV/windows checks.
94%
#832 build(deps): update dependency pytest-cov to v7 (main) craft-providers merged Merged PR #832 in commit 9d9f3be, upgrading pytest-cov from ~=5.0 to ~=7.0 in the dev dependency group.
93%
#140 build(deps): update dependency pytest-cov to v7 craft-grammar merged Merged PR #140 in commit 6bc31f6, upgrading pytest-cov from ~=6.0 to ~=7.0 and refreshing the lockfile; all CI checks passed.
92%
#933 build(deps): update dependency pytest-cov to v7 (main) craft-application merged Renovate PR #933 bumped pytest-cov from ==6.3.0 to ==7.0.0 in craft-application; approved by 2 reviewers and merged into main via commit be5d6994, all CI checks passing. Later advanced to v7.1.0 in #1056.
91%
#232 build(deps): update dependency pytest-cov to v7.1.0 (main) craft-archives merged Renovate PR merged into main as commit 4d206f0, bumping pytest-cov from ==7.0.0 to ==7.1.0 in pyproject.toml plus lockfile; all CI checks (lint, fast/slow tests, min-deps, OSV) passed.
91%
#1375 build(deps): update dependency pytest-cov to v7 (main) craft-parts merged Merged into main via commit 1c2d5740, updating pytest-cov from ~=5.0 to ~=7.0 after tests, lint, and security checks passed.
91%