From 9487e62ba40d56861725dc2f1417194d0a81058f Mon Sep 17 00:00:00 2001 From: armanddidierjean <95971503+armanddidierjean@users.noreply.github.com> Date: Wed, 28 May 2025 18:36:02 +0200 Subject: [PATCH] Ignores from coverage --- pyproject.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index cba8134a46..e58ad245f5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -169,9 +169,11 @@ concurrency = [ [tool.coverage.report] -# Regexes for lines to exclude from consideration +exclude_also = [ + 'if settings.SMTP_ACTIVE:', + 'except Exception:\n\s*await db.rollback()\n\s*raise', +] # Regexes for lines to exclude from consideration # See https://coverage.readthedocs.io/en/latest/excluding.html#excluding for more info -exclude_also = [] skip_covered = true show_missing = true