From 18d30549acc82dc2813f0d17b5475a2cf5daf419 Mon Sep 17 00:00:00 2001
From: Anton Akhmerov <anton.akhmerov@gmail.com>
Date: Thu, 5 Jan 2017 15:22:29 +0100
Subject: [PATCH] improve coverage configuration

---
 .coveragerc     | 11 ++++++++++-
 kwant/digest.py |  2 +-
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/.coveragerc b/.coveragerc
index 3572e84b..8914c410 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -1,3 +1,12 @@
 [run]
 plugins = Cython.Coverage
-omit = */tests/*
+omit =
+     */tests/*
+     kwant/graph/dissection.py
+     kwant/_kwant_version.py
+     */__init__.py
+branch = True
+[report]
+exclude_lines =
+    skip coverage
+    @abc.abstractmethod
diff --git a/kwant/digest.py b/kwant/digest.py
index cd53095e..0181032f 100644
--- a/kwant/digest.py
+++ b/kwant/digest.py
@@ -72,7 +72,7 @@ def gauss(input, salt=''):
     return cos(a * TWOPI) * sqrt(-2.0 * log(1.0 - b))
 
 
-def test(n=20000):
+def test(n=20000):  # skip coverage
     """Test the generator with the dieharder suite generating n**2 samples.
 
     Executing this function may take a very long time.
-- 
GitLab