From 90717b490e20ce80656bae21b339b9477adf07be Mon Sep 17 00:00:00 2001 From: Lukas Burgholzer Date: Wed, 22 Jan 2025 15:47:57 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20update=20Python=20coverage=20con?= =?UTF-8?q?figuration=20(#811)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description This small PR updates the Python coverage collection configuration to exclude additional constructs that may not be possible to cover by tests. ## Checklist: - [x] The pull request only contains commits that are related to it. - [x] I have added appropriate tests and documentation. - [x] I have made sure that all CI jobs on GitHub pass. - [x] The pull request introduces no new warnings and follows the project's style guidelines. Signed-off-by: burgholzer --- pyproject.toml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index bd8975e2a..44fcc238f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -148,10 +148,12 @@ run.omit = [ '*/_compat/*', ] report.exclude_also = [ - '\.\.\.', - 'if TYPE_CHECKING:', - 'raise AssertionError', - 'raise NotImplementedError', + '\.\.\.', + 'if TYPE_CHECKING:', + 'raise AssertionError', + 'raise NotImplementedError', + 'def __dir__()', # Ignore __dir__ method that exists mainly for better IDE support + '@overload' # Overloads are only for static typing ]