From 3c4c868d3d81f67f5bdbd22b9222f91f40692067 Mon Sep 17 00:00:00 2001 From: Adrian Chaves Date: Fri, 31 Jul 2026 15:53:41 +0200 Subject: [PATCH] Improve the filtering of --no-cov warnings --- pyproject.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 736cfd3df..8c6bc402a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -381,8 +381,10 @@ filterwarnings = [ "ignore:Core Pydantic V1 functionality isn't compatible:UserWarning", # pyftpdlib imports asynchat, removed in Python 3.12, on lower versions. "ignore:The async(hat|ore) module is deprecated:DeprecationWarning", - # CI runs without coverage pass --no-cov, which pytest-cov reports. - "ignore::pytest_cov.CovDisabledWarning", + # CI runs without coverage pass --no-cov, which pytest-cov reports. Matched + # by message because some tox envs do not install pytest-cov, and pytest + # warns when a filter names a module it cannot import. + "ignore:Coverage disabled via --no-cov switch!", ] [tool.ruff.lint]