diff options
author | Natanael Arndt <arndtn@gmail.com> | 2021-03-01 13:18:05 +0100 |
---|---|---|
committer | Natanael Arndt <arndtn@gmail.com> | 2021-03-01 13:18:05 +0100 |
commit | 4cc036f54a3b071c53a272461567d85976b2b4eb (patch) | |
tree | cc09e7c542b1add467a64c517848111958ec1422 | |
parent | 9f0f296a3b36cbca9771cd0f0c25492a06a33acd (diff) | |
download | rdflib-4cc036f54a3b071c53a272461567d85976b2b4eb.tar.gz |
Move coverage configuration to setup.cfg
-rw-r--r-- | .coveragerc | 36 | ||||
-rw-r--r-- | setup.cfg | 37 |
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/ @@ -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/ |