Skip to content

Commit

Permalink
Remove the pytest-coverage setup because we don't use it (and haven't…
Browse files Browse the repository at this point in the history
… for a while) (#790)
  • Loading branch information
pnkraemer authored Oct 25, 2024
1 parent 6541712 commit 3a0b4d7
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,28 +81,6 @@ norecursedirs = ["dist", "build", "dev", "typings"]
addopts = ["--cov=probdiffeq", "--cov-report=html"]


# This is how we measure coverage; it is purely an internal/local thing for now.
# That means that we don't display test coverage, but use it to guide refactoring
# the tests.

[tool.coverage.run]
source = ["probdiffeq/*"]
omit = ["probdiffeq/doc_util/*"]

[tool.coverage.report]
exclude_also = [
# Debugging-only code should not be measured
"def __repr__",
# Interfaces should not be measured
"@abc.abstractmethod",
"raise NotImplementedError",
# Tree flattening/unflattening is not always called but important
# once functions are jitted by the user
"def tree_flatten",
"def tree_unflatten",
]


[tool.ruff]
include = ["**.py", "**/pyproject.toml", "**.ipynb"]
# Same as Black.
Expand Down

0 comments on commit 3a0b4d7

Please sign in to comment.