Skip to content

Commit

Permalink
🔧 update Python coverage configuration (#811)
Browse files Browse the repository at this point in the history
## Description

This small PR updates the Python coverage collection configuration to
exclude additional constructs that may not be possible to cover by
tests.

## Checklist:

<!---
This checklist serves as a reminder of a couple of things that ensure
your pull request will be merged swiftly.
-->

- [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 <[email protected]>
  • Loading branch information
burgholzer authored Jan 22, 2025
1 parent ca1e4c4 commit 90717b4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
]


Expand Down

0 comments on commit 90717b4

Please sign in to comment.