Skip to content

Commit

Permalink
Move contents of .coveragerc into pyproject.toml (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinpfoertner authored Mar 29, 2022
1 parent fc32cce commit 0864fcf
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 28 deletions.
28 changes: 0 additions & 28 deletions .coveragerc

This file was deleted.

29 changes: 29 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,35 @@ filterwarnings = [
"ignore:the imp module is deprecated in favour of importlib.*:DeprecationWarning:flatbuffers.*"
]

# see https://coverage.readthedocs.io/en/stable/config.html

[tool.coverage.run]
branch = true
source = [
"probnum",
]

[tool.coverage.paths]
source = [
"src/",
"*/site-packages/",
]

[tool.coverage.report]
exclude_lines = [
# Have to re-enable the standard pragma
'pragma: no cover',
# Don't complain about missing debug-only code:
'def __repr__(self):',
'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__.:',
]

################################################################################
# Linting Configuration #
################################################################################
Expand Down

0 comments on commit 0864fcf

Please sign in to comment.