From de69279e212f853f984467822c8b2d955b656378 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 24 Apr 2026 12:05:53 +0000 Subject: [PATCH 1/2] chore(deps-dev): bump pytest-cov from 6.3.0 to 7.1.0 Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov) from 6.3.0 to 7.1.0. - [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest-cov/compare/v6.3.0...v7.1.0) --- updated-dependencies: - dependency-name: pytest-cov dependency-version: 7.1.0 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 2788c649..455fe55d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -68,7 +68,7 @@ test = [ "pytest-benchmark ==5.2.3", "pytest-cases ==3.10.1", "pytest-custom_exit_code ==0.3.0", - "pytest-cov ==6.3.0", # Uses: coverage[toml] >=7.5 + "pytest-cov ==7.1.0", # Uses: coverage[toml] >=7.5 "pytest-doctestplus ==1.7.1", "pytest-env ==1.2.0", ] From 2bb27d9446ba3e9155e9881e8a2894ec04aba47e Mon Sep 17 00:00:00 2001 From: Jens Troeger Date: Mon, 25 May 2026 11:09:19 +1000 Subject: [PATCH 2/2] chore: undo previous and now outdated fixes --- .pre-commit-config.yaml | 6 ++---- Makefile | 2 +- pyproject.toml | 7 +------ 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9cb85235..9f0d551d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -160,14 +160,12 @@ repos: hooks: - id: actionlint -# On push to the remote, run all tests. Note that the `COVERAGE_CORE` variable is required -# for Python 3.12+ to make sure Coverage uses the new Python monitoring module. -# See also: https://blog.trailofbits.com/2025/05/01/making-pypis-test-suite-81-faster/#optimizing-coverage-with-python-312s-sysmonitoring +# On push to the remote, run all tests. - repo: local hooks: - id: pytest name: Run unit tests - entry: env COVERAGE_CORE=sysmon pytest --config-file pyproject.toml --cov-config pyproject.toml -m 'not integration and not performance' src/package/ tests/ docs/ + entry: pytest --config-file pyproject.toml --cov-config pyproject.toml -m 'not integration and not performance' src/package/ tests/ docs/ language: python verbose: true always_run: true diff --git a/Makefile b/Makefile index 729531eb..dc213643 100644 --- a/Makefile +++ b/Makefile @@ -171,7 +171,7 @@ check: .PHONY: test test-all test-unit test-integration test-performance test: test-unit test-unit: - COVERAGE_CORE=sysmon python -m pytest --config-file pyproject.toml --cov-config pyproject.toml -m 'not integration and not performance' src/package/ tests/ docs/ + python -m pytest --config-file pyproject.toml --cov-config pyproject.toml -m 'not integration and not performance' src/package/ tests/ docs/ test-integration: python -m pytest --config-file pyproject.toml --no-cov -m integration tests/ test-performance: diff --git a/pyproject.toml b/pyproject.toml index 455fe55d..788cc839 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -61,14 +61,13 @@ hooks = [ ] # Note that the `custom_exit_code` and `env` plugins may currently be unmaintained. test = [ - "coverage ==7.6.12; python_version<'3.14'", # https://github.com/pypi/warehouse/pull/17872#issuecomment-2845932281 "faker ==40.19.1", "hypothesis >=6.21.0,<6.152.10", "pytest >=9.0.3,<10.0.0", "pytest-benchmark ==5.2.3", "pytest-cases ==3.10.1", "pytest-custom_exit_code ==0.3.0", - "pytest-cov ==7.1.0", # Uses: coverage[toml] >=7.5 + "pytest-cov ==7.1.0", "pytest-doctestplus ==1.7.1", "pytest-env ==1.2.0", ] @@ -266,10 +265,6 @@ env = [ filterwarnings = [ "error", "always::DeprecationWarning", - # The CoverageWarning warning is issued in two contexts: - # Python 3.10, 3.11: sys.monitoring isn't available in this version, using default core (no-sysmon) - # Python 3.12, 3.13: sys.monitoring can't measure branches in this version, using default core (no-sysmon) - "ignore:sys.monitoring isn't available in this version:coverage.exceptions.CoverageWarning", "always::coverage.exceptions.CoverageWarning", # https://docs.pytest.org/en/latest/how-to/failures.html#warning-about-unraisable-exceptions-and-unhandled-thread-exceptions "error::pytest.PytestUnraisableExceptionWarning",