Use covdefaults to handle coveragerc
This commit is contained in:
parent
23d4811e19
commit
a7f73434a6
29
.coveragerc
29
.coveragerc
|
@ -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
|
|
@ -1,6 +1,4 @@
|
|||
-e .
|
||||
|
||||
covdefaults
|
||||
coverage
|
||||
mock
|
||||
pre-commit
|
||||
pytest
|
||||
|
|
|
@ -68,6 +68,9 @@ exclude =
|
|||
[bdist_wheel]
|
||||
universal = True
|
||||
|
||||
[coverage:run]
|
||||
plugins = covdefaults
|
||||
|
||||
[mypy]
|
||||
check_untyped_defs = true
|
||||
disallow_any_generics = true
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue