Skip to content

Commit 7b5cf36

Browse files
Exclude backward() from code coverage reports
1 parent 4fc576d commit 7b5cf36

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: pyproject.toml

+6
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ include = ["bitsandbytes*"]
7979
[tool.setuptools.dynamic]
8080
version = {attr = "bitsandbytes.__version__"}
8181

82+
[tool.coverage.report]
83+
exclude_also = [
84+
# exclude backward() functions from coverage, as they are invoked from C++
85+
'def backward\(ctx'
86+
]
87+
8288
[tool.pytest.ini_options]
8389
addopts = "-rP -m 'not slow and not benchmark and not deprecated'"
8490
# ; --cov=bitsandbytes

0 commit comments

Comments
 (0)