summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Arndt <arndtn@gmail.com>2021-03-01 13:18:05 +0100
committerNatanael Arndt <arndtn@gmail.com>2021-03-01 13:18:05 +0100
commit4cc036f54a3b071c53a272461567d85976b2b4eb (patch)
treecc09e7c542b1add467a64c517848111958ec1422
parent9f0f296a3b36cbca9771cd0f0c25492a06a33acd (diff)
downloadrdflib-4cc036f54a3b071c53a272461567d85976b2b4eb.tar.gz
Move coverage configuration to setup.cfg
-rw-r--r--.coveragerc36
-rw-r--r--setup.cfg37
2 files changed, 37 insertions, 36 deletions
diff --git a/.coveragerc b/.coveragerc
deleted file mode 100644
index c68b1326..00000000
--- a/.coveragerc
+++ /dev/null
@@ -1,36 +0,0 @@
-# .coveragerc to control coverage.py
-[run]
-branch = True
-#source = rdflib,build/src/rdflib # specified in .travis.yml for different envs
-omit = */site-packages/*
-
-[report]
-# Regexes for lines to exclude from consideration
-exclude_lines =
- # Have to re-enable the standard pragma
- pragma: no cover
-
- # Don't complain about missing debug-only code:
- #def __repr__
- #if self\.debug
-
- # Don't complain if tests don't hit defensive assertion code:
- #raise AssertionError
- #raise NotImplementedError
-
- # Don't complain if non-runnable code isn't run:
- if 0:
- if __name__ == .__main__.:
- if __name__==.__main__.:
-
-# path mappings for the py3 environments (doesn't seem to work on coveralls yet)
-[paths]
-source =
- rdflib/
- build/src/rdflib/
-tests =
- test/
- build/src/test/
-examples =
- examples/
- build/src/examples/
diff --git a/setup.cfg b/setup.cfg
index cc063e11..b0afa966 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -11,3 +11,40 @@ exclude=rdflib.plugins.sparql.paths|rdflib.extras.external_graph_libs
ignore = W806
max-line-length = 88
exclude = host,extras,transform,rdfs,pyRdfa,sparql,results,pyMicrodata
+
+# .coveragerc to control coverage.py
+[coverage:run]
+branch = True
+#source = rdflib,build/src/rdflib # specified in .travis.yml for different envs
+omit = */site-packages/*
+
+[coverage:report]
+# Regexes for lines to exclude from consideration
+exclude_lines =
+ # Have to re-enable the standard pragma
+ pragma: no cover
+
+ # Don't complain about missing debug-only code:
+ #def __repr__
+ #if self\.debug
+
+ # Don't complain if tests don't hit defensive assertion code:
+ #raise AssertionError
+ #raise NotImplementedError
+
+ # Don't complain if non-runnable code isn't run:
+ if 0:
+ if __name__ == .__main__.:
+ if __name__==.__main__.:
+
+# path mappings for the py3 environments (doesn't seem to work on coveralls yet)
+[coverage:paths]
+source =
+ rdflib/
+ build/src/rdflib/
+tests =
+ test/
+ build/src/test/
+examples =
+ examples/
+ build/src/examples/