Skip to content

Commit 2a6a952

Browse files
add proper omit definition for tests coverage report (#179)
* add proper `omit` definition * Update optimizer_config.schema.json * exclude tmp from coverage report --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent f573e95 commit 2a6a952

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,14 @@ addopts = """
163163
branch = true
164164
omit = [
165165
"__init__.py",
166+
"*/site-packages/*",
167+
"*/dist-packages/*",
168+
"*/venv/*",
169+
"*/.env/*",
170+
"*/.venv/*",
171+
"*/virtualenv/*",
172+
"*/tests/*",
173+
"*/tmp/*",
166174
]
167175

168176
[tool.coverage.paths]

0 commit comments

Comments
 (0)