"test/vscode:/vscode.git/clone" did not exist on "5524e7d0578f92df3b29629d6141cbbd21c36a63"
Commit 9b9d8dd7 authored by Leo Gao's avatar Leo Gao
Browse files

Exclude abstractmethod and notimplemented stuff from coverage

parent 8f8a1dff
...@@ -9,3 +9,20 @@ omit = ...@@ -9,3 +9,20 @@ omit =
lm_eval/tasks/triviaqa.py lm_eval/tasks/triviaqa.py
lm_eval/tasks/naturalqs.py lm_eval/tasks/naturalqs.py
lm_eval/models/dummy.py lm_eval/models/dummy.py
[report]
exclude_lines =
# Skip any pass lines such as may be used for @abstractmethod
pass
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain about missing debug-only code:
def __repr__
if self\.debug
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
return NotImplemented
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment