Skip to content

Commit 950f0b6

Browse files
committed
ci: move coverage config to pyproject.toml
1 parent ceb4660 commit 950f0b6

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.coveragerc

Lines changed: 0 additions & 13 deletions
This file was deleted.

pyproject.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,19 @@ version = { attr = "cve_bin_tool.version.VERSION" }
115115
"sbom" = ["*.spdx", "*.json"]
116116
"mismatch" = ["*.py"]
117117

118+
[tool.coverage.run]
119+
source = ["cve_bin_tool", "test"]
120+
branch = true
121+
122+
[tool.coverage.report]
123+
exclude_lines = [
124+
"no cov",
125+
"no qa",
126+
"noqa",
127+
"pragma: no cover",
128+
"if __name__ == .__main__.:",
129+
]
130+
118131
[tool.isort]
119132
profile = "black"
120133

0 commit comments

Comments
 (0)