2018-06-25 22:34:15 +00:00
|
|
|
[run]
|
|
|
|
omit =
|
2022-11-14 16:04:13 +00:00
|
|
|
setup.py
|
|
|
|
*__init__.py
|
|
|
|
|
|
|
|
# omit everything in tests folder
|
|
|
|
tests/*
|
2020-05-17 20:31:20 +00:00
|
|
|
[report]
|
|
|
|
exclude_lines =
|
2022-11-14 16:04:13 +00:00
|
|
|
# Re-enable pragma: any line including this as a comment
|
|
|
|
# will not be included in report
|
2020-05-17 20:31:20 +00:00
|
|
|
pragma: no cover
|
2022-11-14 16:04:13 +00:00
|
|
|
|
|
|
|
# Don't complain about missing debug-only code
|
2020-05-17 20:31:20 +00:00
|
|
|
def __repr__
|
|
|
|
if self.debug:
|
2022-11-14 16:04:13 +00:00
|
|
|
|
|
|
|
# Don't complain if tests don't hit defensive assertion code
|
2020-05-17 20:31:20 +00:00
|
|
|
raise AssertionError
|
|
|
|
raise NotImplementedError
|
2022-11-14 16:04:13 +00:00
|
|
|
|
|
|
|
# Don't complain if non-runnable code isn't run
|
2020-05-17 20:31:20 +00:00
|
|
|
if __name__ == .__main__.:
|
2022-11-14 16:04:13 +00:00
|
|
|
|
|
|
|
# Don't complain about abstract methods:
|
|
|
|
@(abc\.)?abstractmethod
|