Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the pytest-coverage setup because we don't use it (and haven't for a while) #790

Merged
merged 1 commit into from
Oct 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading