Improve the filtering of --no-cov warnings

This commit is contained in:
Adrian Chaves 2026-07-31 15:53:41 +02:00
parent daff5abef7
commit 3c4c868d3d
1 changed files with 4 additions and 2 deletions

View File

@ -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]