From 9a7c04a7a834fc149df756ae4e5b7867d0467038 Mon Sep 17 00:00:00 2001 From: antarcticrainforest Date: Fri, 5 Jul 2024 22:14:53 +0200 Subject: [PATCH] Add .converagerc --- .coveragerc | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..f401e40 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,35 @@ +# .coveragerc to control coverage.py +[run] +branch = False +omit = .converage* + */tests/* + */__main__.py +[report] +fail_under = 95 +# Regexes for lines to exclude from consideration +exclude_lines = + # Have to re-enable the standard pragma + pragma: no cover + + # Don't complain about missing debug-only code: + def __repr__ + if self\.debug + def _post_url(self) + + # Don't complain if tests don't hit defensive assertion code: + raise AssertionError + raise NotImplementedError + except KeyboardInterrupt: + except ImportError: + except RuntimeError + raise SystemExit + + # Don't complain if non-runnable code isn't run: + if 0: + if perf_file *: + p_col = * + f_col = * + q_col = * + if __name__ == .__main__.: + +ignore_errors = False