Skip to content

Commit 6b000c8

Browse files
authored
Merge pull request #244 from nipy/codex/exclude-tests-from-coverage-report
Configure coverage to omit tests
2 parents 33d4af8 + bedabae commit 6b000c8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pyproject.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,17 @@ doctest_optionflags = "ALLOW_UNICODE NORMALIZE_WHITESPACE ELLIPSIS"
8484
env = "PYTHONHASHSEED=0"
8585
filterwarnings = ["ignore::DeprecationWarning"]
8686
junit_family = "xunit2"
87+
88+
[tool.coverage.run]
89+
branch = true
90+
omit = [
91+
"*/tests/*",
92+
"nitransforms/conftest.py",
93+
"nitransforms/patched.py",
94+
]
95+
96+
[tool.coverage.report]
97+
exclude_lines = [
98+
"raise NotImplementedError",
99+
"warnings\\.warn",
100+
]

0 commit comments

Comments
 (0)