From bc5c42b2ea49510f412499bef77ecd6891c6c474 Mon Sep 17 00:00:00 2001 From: Alexander Loechel Date: Thu, 14 Sep 2017 09:22:58 +0200 Subject: [PATCH] Move settings from .coveragerc to setup.cfg --- .coveragerc | 18 ------------------ setup.cfg | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 18 deletions(-) delete mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index ec4a95e..0000000 --- a/.coveragerc +++ /dev/null @@ -1,18 +0,0 @@ -[run] -branch = True -source = RestrictedPython -omit = - # Tests are classically not part of source code - # and should not be calculated into coverage sum - # on the other hand, the coverage tools do a handy job on highlighting - # code branches and tests that that did not get executed. - # Therefore we include tests into coverage analysis for the moment. - #tests/*.py - #src/RestrictedPython/tests - #src/RestrictedPython/tests/*.py - -[report] -precision = 2 - -[html] -directory = reports/coverage diff --git a/setup.cfg b/setup.cfg index c1910e4..3be0e3e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -56,3 +56,22 @@ ignore = N805, N806, N812, + +[coverage:run] +branch = True +source = RestrictedPython +omit = + # Tests are classically not part of source code + # and should not be calculated into coverage sum + # on the other hand, the coverage tools do a handy job on highlighting + # code branches and tests that that did not get executed. + # Therefore we include tests into coverage analysis for the moment. + #tests/*.py + #src/RestrictedPython/tests + #src/RestrictedPython/tests/*.py + +[coverage:report] +precision = 2 + +[coverage:html] +directory = reports/coverage