[damned-lies] chore: let coverage omit some files and dirs



commit acf6031e184a00a64d81ff6049e209e40bb69f1a
Author: Guillaume Bernard <associations guillaume-bernard fr>
Date:   Thu Apr 29 16:14:49 2021 +0200

    chore: let coverage omit some files and dirs

 setup.cfg | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/setup.cfg b/setup.cfg
index e69f5d5e..5bed1c43 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -11,6 +11,14 @@ source =
     stats
     teams
     vertimus
+omit =
+    # Django generated files
+    */migrations/*
+    # Empty files in general
+    */__init__.py
+    # Tests are always 100% ”Tested”
+    */tests.py
+    */tests/*
 
 [coverage:html]
 directory = coverage_html_report


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]