diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index fdfed19..0000000 --- a/.coveragerc +++ /dev/null @@ -1,37 +0,0 @@ -[run] -branch = True -parallel = 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 - # We optionally substitute this - ${COVERAGE_IGNORE_WINDOWS} - - # 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$ - - # Ignore typing-related things - ^if (False|TYPE_CHECKING): - : \.\.\.$ - - # 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 73cc9c9..abda480 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,3 +1,4 @@ +covdefaults coverage git+https://github.com/asottile/hecate@ebe6dfb pytest diff --git a/setup.cfg b/setup.cfg index 0eab955..9ced18a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -35,6 +35,10 @@ exclude = [bdist_wheel] universal = True +[coverage:run] +plugins = covdefaults +parallel = true + [mypy] check_untyped_defs = true disallow_any_generics = true