From 1f9df5909a771162fc4eed11ab0ef527beaf7850 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sat, 29 Feb 2020 21:12:22 -0800 Subject: [PATCH] Use covdefaults to handle coveragerc [covdefaults](https://github.com/asottile/covdefaults) Committed via https://github.com/asottile/all-repos --- .coveragerc | 30 ------------------------------ requirements-dev.txt | 1 + setup.cfg | 3 +++ 3 files changed, 4 insertions(+), 30 deletions(-) delete mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index 6aec64f..0000000 --- a/.coveragerc +++ /dev/null @@ -1,30 +0,0 @@ -[run] -branch = True -source = . -omit = - .tox/* - /usr/* - setup.py - # Don't complain if non-runnable code isn't run - */__main__.py - -[report] -show_missing = True -skip_covered = True -exclude_lines = - # Have to re-enable the standard pragma - \#\s*pragma: no cover - - # Don't complain if tests don't hit defensive assertion code: - ^\s*raise AssertionError\b - ^\s*raise NotImplementedError\b - ^\s*return NotImplemented\b - ^\s*raise$ - - # Don't complain if non-runnable code isn't run: - ^if __name__ == ['"]__main__['"]:$ - -[html] -directory = coverage-html - -# vim:ft=dosini diff --git a/requirements-dev.txt b/requirements-dev.txt index 4dbfffa..67f6485 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,3 +1,4 @@ +covdefaults coverage pre-commit pytest diff --git a/setup.cfg b/setup.cfg index 7f4ac4a..c7080da 100644 --- a/setup.cfg +++ b/setup.cfg @@ -32,6 +32,9 @@ console_scripts = [bdist_wheel] universal = True +[coverage:run] +plugins = covdefaults + [mypy] check_untyped_defs = true disallow_any_generics = true