From 5578072ba820c488ec523a05943f4fcf0b7c0460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Wed, 13 Dec 2023 14:39:02 +0100 Subject: [PATCH] chore: coverage reports configuration --- pyproject.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index da3b82b2..46a8af81 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -112,3 +112,15 @@ commands = poetry install --with doc poetry run sphinx-build documentation build/sphinx/html """ + +[tool.coverage.run] +branch = true + +[tool.coverage.report] +exclude_lines = [ + "pragma: no cover", + "raise NotImplementedError", + "except ImportError", + "if app.debug", + "if app.testing", +]