From 8c700c7c2144537a88c8c4f216cc339f9b08df2b Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Tue, 28 Jun 2022 21:31:49 +0200 Subject: [PATCH 1/2] Don't ignore wildcard .coverage* --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c800dcfd..2a0f7ef4 100644 --- a/.gitignore +++ b/.gitignore @@ -41,7 +41,7 @@ pip-delete-this-directory.txt # Unit test / coverage reports htmlcov/ .tox/ -.coverage* +.coverage .cache nosetests.xml coverage.xml From 33ef1840ab039ce9c4d4c62fe849199d0c513719 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Tue, 28 Jun 2022 21:32:14 +0200 Subject: [PATCH 2/2] Add .coveragerc ignoring if TYPE_CHECKING --- .coveragerc | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..0ab529e2 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,4 @@ +[report] +exclude_lines = + pragma: nocover + if TYPE_CHECKING: