Skip to content

Commit

Permalink
chore[tool]: update coverage exclusion rules
Browse files Browse the repository at this point in the history
improve coverage by updating coverage exclusion rules to exclude
statements/branches we don't expect to hit at runtime (like panics or
type checking)
  • Loading branch information
charles-cooper committed Jan 21, 2025
1 parent 762eec6 commit 6905952
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,11 @@ omit = vyper/version.py
# allow `coverage combine` to combine reports from heterogeneous OSes.
# (mainly important for consolidating coverage reports in the CI).
relative_files = True

[coverage:report]
# see https://coverage.readthedocs.io/en/latest/excluding.html#advanced-exclusion
exclude_also =
if TYPE_CHECKING:
def __repr__
raise CompilerPanic
raise TypeCheckFailure

0 comments on commit 6905952

Please sign in to comment.