Commit 9b9d8dd7 authored by Leo Gao's avatar Leo Gao
Browse files

Exclude abstractmethod and notimplemented stuff from coverage

parent 8f8a1dff
...@@ -8,4 +8,21 @@ omit = ...@@ -8,4 +8,21 @@ omit =
lm_eval/tasks/sat.py lm_eval/tasks/sat.py
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
\ No newline at end of file
[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