Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore[ci]: update coverage exclusion rules #4459

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
chore[tool]: update coverage exclusion rules
improve coverage by updating coverage exclusion rules to exclude
statements/branches we don't expect to hit at runtime (like panics or
type checking)
charles-cooper committed Jan 21, 2025
commit 6905952a33e9d5c503f2fa3dcdc93be0fca49b1b
8 changes: 8 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -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