Use covdefaults to handle coveragerc

This commit is contained in:
Anthony Sottile 2020-02-29 20:34:45 -08:00
parent 23d4811e19
commit a7f73434a6
4 changed files with 6 additions and 33 deletions

View File

@ -1,29 +0,0 @@
[run]
branch = True
source =
.
omit =
.tox/*
/usr/*
setup.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

View File

@ -1,6 +1,4 @@
-e .
covdefaults
coverage
mock
pre-commit
pytest

View File

@ -68,6 +68,9 @@ exclude =
[bdist_wheel]
universal = True
[coverage:run]
plugins = covdefaults
[mypy]
check_untyped_defs = true
disallow_any_generics = true

View File

@ -1,5 +1,6 @@
from unittest.mock import patch
import pytest
from mock import patch
from pre_commit_hooks.detect_aws_credentials import get_aws_cred_files_from_env
from pre_commit_hooks.detect_aws_credentials import get_aws_secrets_from_env