Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pytest-cov requirement from ~=4.1 to ~=5.0 #738

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 25, 2024

Updates the requirements on pytest-cov to permit the latest version.

Changelog

Sourced from pytest-cov's changelog.

5.0.0 (2024-03-24)

  • Removed support for xdist rsync (now deprecated). Contributed by Matthias Reichenbach in [#623](https://github.com/pytest-dev/pytest-cov/issues/623) <https://github.com/pytest-dev/pytest-cov/pull/623>_.
  • Switched docs theme to Furo.
  • Various legacy Python cleanup and CI improvements. Contributed by Christian Clauss and Hugo van Kemenade in [#630](https://github.com/pytest-dev/pytest-cov/issues/630) <https://github.com/pytest-dev/pytest-cov/pull/630>, [#631](https://github.com/pytest-dev/pytest-cov/issues/631) <https://github.com/pytest-dev/pytest-cov/pull/631>, [#632](https://github.com/pytest-dev/pytest-cov/issues/632) <https://github.com/pytest-dev/pytest-cov/pull/632>_ and [#633](https://github.com/pytest-dev/pytest-cov/issues/633) <https://github.com/pytest-dev/pytest-cov/pull/633>_.
  • Added a pyproject.toml example in the docs. Contributed by Dawn James in [#626](https://github.com/pytest-dev/pytest-cov/issues/626) <https://github.com/pytest-dev/pytest-cov/pull/626>_.
  • Modernized project's pre-commit hooks to use ruff. Initial POC contributed by Christian Clauss in [#584](https://github.com/pytest-dev/pytest-cov/issues/584) <https://github.com/pytest-dev/pytest-cov/pull/584>_.

4.1.0 (2023-05-24)

  • Updated CI with new Pythons and dependencies.
  • Removed rsyncdir support. This makes pytest-cov compatible with xdist 3.0. Contributed by Sorin Sbarnea in [#558](https://github.com/pytest-dev/pytest-cov/issues/558) <https://github.com/pytest-dev/pytest-cov/pull/558>_.
  • Optimized summary generation to not be performed if no reporting is active (for example, when --cov-report='' is used without --cov-fail-under). Contributed by Jonathan Stewmon in [#589](https://github.com/pytest-dev/pytest-cov/issues/589) <https://github.com/pytest-dev/pytest-cov/pull/589>_.
  • Added support for JSON reporting. Contributed by Matthew Gamble in [#582](https://github.com/pytest-dev/pytest-cov/issues/582) <https://github.com/pytest-dev/pytest-cov/pull/582>_.
  • Refactored code to use f-strings. Contributed by Mark Mayo in [#572](https://github.com/pytest-dev/pytest-cov/issues/572) <https://github.com/pytest-dev/pytest-cov/pull/572>_.
  • Fixed a skip in the test suite for some old xdist. Contributed by a bunch of people in [#565](https://github.com/pytest-dev/pytest-cov/issues/565) <https://github.com/pytest-dev/pytest-cov/pull/565>_.

4.0.0 (2022-09-28)

Note that this release drops support for multiprocessing.

  • --cov-fail-under no longer causes pytest --collect-only to fail Contributed by Zac Hatfield-Dodds in [#511](https://github.com/pytest-dev/pytest-cov/issues/511) <https://github.com/pytest-dev/pytest-cov/pull/511>_.

  • Dropped support for multiprocessing (mostly because issue 82408 <https://github.com/python/cpython/issues/82408>_). This feature was mostly working but very broken in certain scenarios and made the test suite very flaky and slow.

    There is builtin multiprocessing support in coverage and you can migrate to that. All you need is this in your .coveragerc::

    [run] concurrency = multiprocessing

... (truncated)

Commits
  • 5295ce0 Bump version: 4.1.0 → 5.0.0
  • 1181b06 Update changelog.
  • 9757222 Fix a minor grammar error (#636)
  • 9f5cd81 Cleanup releasing instructions. Closes #616.
  • 93b5047 Add test for pyproject.toml loading without explicit --cov-config. Ref #508.
  • ff50860 docs: add config instructions for pyproject.toml.
  • 4a5a4b5 Keep GitHub Actions up to date with GitHub's Dependabot
  • 1d7f559 Fix or remove URLs that are causing docs tests to fail
  • 6a5af8e Update changelog.
  • d9fe8df Switch to furo. Closes #618.
  • 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 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 <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Mar 25, 2024
@TEAM4-0 TEAM4-0 enabled auto-merge (squash) March 25, 2024 05:17
Updates the requirements on
[pre-commit](https://github.com/pre-commit/pre-commit) to permit the
latest version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/pre-commit/pre-commit/releases">pre-commit's
releases</a>.</em></p>
<blockquote>
<h2>pre-commit v3.7.0</h2>
<h3>Features</h3>
<ul>
<li>Use a tty for <code>docker</code> and <code>docker_image</code>
hooks when <code>--color</code> is specified.
<ul>
<li><a
href="https://redirect.github.com/pre-commit/pre-commit/issues/3122">#3122</a>
PR by <a
href="https://github.com/glehmann"><code>@​glehmann</code></a>.</li>
</ul>
</li>
</ul>
<h3>Fixes</h3>
<ul>
<li>Fix <code>fail_fast</code> for individual hooks stopping when
previous hooks had failed.
<ul>
<li><a
href="https://redirect.github.com/pre-commit/pre-commit/issues/3167">#3167</a>
issue by <a
href="https://github.com/tp832944"><code>@​tp832944</code></a>.</li>
<li><a
href="https://redirect.github.com/pre-commit/pre-commit/issues/3168">#3168</a>
PR by <a
href="https://github.com/asottile"><code>@​asottile</code></a>.</li>
</ul>
</li>
</ul>
<h3>Updating</h3>
<ul>
<li>The per-hook behaviour of <code>fail_fast</code> was fixed. If you
want the pre-3.7.0
behaviour, add <code>fail_fast: true</code> to all hooks before the last
<code>fail_fast</code>
hook.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md">pre-commit's
changelog</a>.</em></p>
<blockquote>
<h1>3.7.0 - 2024-03-24</h1>
<h3>Features</h3>
<ul>
<li>Use a tty for <code>docker</code> and <code>docker_image</code>
hooks when <code>--color</code> is specified.
<ul>
<li><a
href="https://redirect.github.com/pre-commit/pre-commit/issues/3122">#3122</a>
PR by <a
href="https://github.com/glehmann"><code>@​glehmann</code></a>.</li>
</ul>
</li>
</ul>
<h3>Fixes</h3>
<ul>
<li>Fix <code>fail_fast</code> for individual hooks stopping when
previous hooks had failed.
<ul>
<li><a
href="https://redirect.github.com/pre-commit/pre-commit/issues/3167">#3167</a>
issue by <a
href="https://github.com/tp832944"><code>@​tp832944</code></a>.</li>
<li><a
href="https://redirect.github.com/pre-commit/pre-commit/issues/3168">#3168</a>
PR by <a
href="https://github.com/asottile"><code>@​asottile</code></a>.</li>
</ul>
</li>
</ul>
<h3>Updating</h3>
<ul>
<li>The per-hook behaviour of <code>fail_fast</code> was fixed. If you
want the pre-3.7.0
behaviour, add <code>fail_fast: true</code> to all hooks before the last
<code>fail_fast</code>
hook.</li>
</ul>
<h1>3.6.2 - 2024-02-18</h1>
<h3>Fixes</h3>
<ul>
<li>Fix building golang hooks during <code>git commit --all</code>.
<ul>
<li><a
href="https://redirect.github.com/pre-commit/pre-commit/issues/3130">#3130</a>
PR by <a
href="https://github.com/asottile"><code>@​asottile</code></a>.</li>
<li><a
href="https://redirect.github.com/pre-commit/pre-commit/issues/2722">#2722</a>
issue by <a
href="https://github.com/pestanko"><code>@​pestanko</code></a> and <a
href="https://github.com/matthewhughes934"><code>@​matthewhughes934</code></a>.</li>
</ul>
</li>
</ul>
<h1>3.6.1 - 2024-02-10</h1>
<h3>Fixes</h3>
<ul>
<li>Remove <code>PYTHONEXECUTABLE</code> from environment when running.
<ul>
<li><a
href="https://redirect.github.com/pre-commit/pre-commit/issues/3110">#3110</a>
PR by <a
href="https://github.com/untitaker"><code>@​untitaker</code></a>.</li>
</ul>
</li>
<li>Handle staged-files-only with only a crlf diff.
<ul>
<li><a
href="https://redirect.github.com/pre-commit/pre-commit/issues/3126">#3126</a>
PR by <a
href="https://github.com/asottile"><code>@​asottile</code></a>.</li>
<li>issue by <a
href="https://github.com/tyyrok"><code>@​tyyrok</code></a>.</li>
</ul>
</li>
</ul>
<h1>3.6.0 - 2023-12-09</h1>
<h3>Features</h3>
<ul>
<li>Check <code>minimum_pre_commit_version</code> first when parsing
configs.
<ul>
<li><a
href="https://redirect.github.com/pre-commit/pre-commit/issues/3092">#3092</a>
PR by <a
href="https://github.com/asottile"><code>@​asottile</code></a>.</li>
</ul>
</li>
</ul>
<h3>Fixes</h3>
<ul>
<li>Fix deprecation warnings for <code>importlib.resources</code>.
<ul>
<li><a
href="https://redirect.github.com/pre-commit/pre-commit/issues/3043">#3043</a>
PR by <a
href="https://github.com/asottile"><code>@​asottile</code></a>.</li>
</ul>
</li>
<li>Fix deprecation warnings for rmtree.
<ul>
<li><a
href="https://redirect.github.com/pre-commit/pre-commit/issues/3079">#3079</a>
PR by <a
href="https://github.com/edgarrmondragon"><code>@​edgarrmondragon</code></a>.</li>
</ul>
</li>
</ul>
<h3>Updating</h3>
<ul>
<li>Drop support for python&lt;3.9.</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/pre-commit/pre-commit/commit/7b4667e9e6e05e31707c404c95115b151745866c"><code>7b4667e</code></a>
v3.7.0</li>
<li><a
href="https://github.com/pre-commit/pre-commit/commit/d46c8fc051f89f0eda3456c8c9c52e129d6acd75"><code>d46c8fc</code></a>
Merge pull request <a
href="https://redirect.github.com/pre-commit/pre-commit/issues/3168">#3168</a>
from pre-commit/fix-fail-fast</li>
<li><a
href="https://github.com/pre-commit/pre-commit/commit/fc622159a6c5cd31919ed2a22fa1c11d8ca56dbf"><code>fc62215</code></a>
fix per-hook fail_fast to not fail on previous failures</li>
<li><a
href="https://github.com/pre-commit/pre-commit/commit/716da1e49c36b8ae46d1dd0ef5aabdb475ee4388"><code>716da1e</code></a>
Merge pull request <a
href="https://redirect.github.com/pre-commit/pre-commit/issues/3155">#3155</a>
from pre-commit/pre-commit-ci-update-config</li>
<li><a
href="https://github.com/pre-commit/pre-commit/commit/0939c11b4f0488ae3bff9b67aed67ea744189412"><code>0939c11</code></a>
[pre-commit.ci] pre-commit autoupdate</li>
<li><a
href="https://github.com/pre-commit/pre-commit/commit/3bdf9fb91bd661c667131dd3f73581a4ce9368c3"><code>3bdf9fb</code></a>
Merge pull request <a
href="https://redirect.github.com/pre-commit/pre-commit/issues/3150">#3150</a>
from pre-commit/pre-commit-ci-update-config</li>
<li><a
href="https://github.com/pre-commit/pre-commit/commit/75b3e52e57b5d6fc7bef10c131204edf196ae17a"><code>75b3e52</code></a>
[pre-commit.ci] pre-commit autoupdate</li>
<li><a
href="https://github.com/pre-commit/pre-commit/commit/5e11c266aecf7c31681ca24a23a622cc1b562cbe"><code>5e11c26</code></a>
Merge pull request <a
href="https://redirect.github.com/pre-commit/pre-commit/issues/3122">#3122</a>
from glehmann/docker-tty</li>
<li><a
href="https://github.com/pre-commit/pre-commit/commit/e58009684cfc4842028e99d34837e2722af39b93"><code>e580096</code></a>
give docker a tty output when expecting color</li>
<li><a
href="https://github.com/pre-commit/pre-commit/commit/7b868c3508dd3a4c1f1930dc25f5433f2dac7950"><code>7b868c3</code></a>
Merge pull request <a
href="https://redirect.github.com/pre-commit/pre-commit/issues/3132">#3132</a>
from pre-commit/pre-commit-ci-update-config</li>
<li>Additional commits viewable in <a
href="https://github.com/pre-commit/pre-commit/compare/v3.6.0...v3.7.0">compare
view</a></li>
</ul>
</details>
<br />


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-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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 <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Copy link

codecov bot commented Mar 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.21%. Comparing base (78d3677) to head (93fa4ab).

❗ Current head 93fa4ab differs from pull request most recent head 1d3affd. Consider uploading reports for the commit 1d3affd to get more accurate results

Additional details and impacted files
@@                  Coverage Diff                   @@
##           ci/dependabot-updates     #738   +/-   ##
======================================================
  Coverage                  72.21%   72.21%           
======================================================
  Files                         17       17           
  Lines                       3462     3462           
======================================================
  Hits                        2500     2500           
  Misses                       962      962           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Updates the requirements on [pytest-cov](https://github.com/pytest-dev/pytest-cov) to permit the latest version.
- [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst)
- [Commits](pytest-dev/pytest-cov@v4.1.0...v5.0.0)

---
updated-dependencies:
- dependency-name: pytest-cov
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/pip/ci/dependabot-updates/pytest-cov-approx-eq-5.0 branch from 5a485dc to 5ee0e9a Compare March 25, 2024 05:23
@TEAM4-0 TEAM4-0 merged commit 10833d6 into ci/dependabot-updates Apr 12, 2024
11 checks passed
@TEAM4-0 TEAM4-0 deleted the dependabot/pip/ci/dependabot-updates/pytest-cov-approx-eq-5.0 branch April 12, 2024 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants